Make offline layer visible

This commit is contained in:
Alessandro Pasotti 2016-06-24 17:13:10 +02:00
parent 323da1bed6
commit ca55b21b3a

View File

@ -25,6 +25,7 @@
#include <qgsmaplayerregistry.h>
#include <qgsproject.h>
#include <qgsmessagebar.h>
#include <qgsmapcanvas.h>
#include <QAction>
@ -111,6 +112,8 @@ void QgsOfflineEditingPlugin::convertProject()
if ( mOfflineEditing->convertToOfflineProject( myPluginGui->offlineDataPath(), myPluginGui->offlineDbFile(), selectedLayerIds ) )
{
updateActions();
// Redraw, to make the offline layer visible
mQGisIface->mapCanvas()->refreshAllLayers();
}
}