Skip to content

Commit

Permalink
Make offline layer visible
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 24, 2016
1 parent 323da1b commit ca55b21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/offline_editing/offline_editing_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <qgsmaplayerregistry.h>
#include <qgsproject.h>
#include <qgsmessagebar.h>
#include <qgsmapcanvas.h>

#include <QAction>

Expand Down Expand Up @@ -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();
}
}

Expand Down

0 comments on commit ca55b21

Please sign in to comment.