Skip to content

Commit ca55b21

Browse files
committed
Make offline layer visible
1 parent 323da1b commit ca55b21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/offline_editing/offline_editing_plugin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <qgsmaplayerregistry.h>
2626
#include <qgsproject.h>
2727
#include <qgsmessagebar.h>
28+
#include <qgsmapcanvas.h>
2829

2930
#include <QAction>
3031

@@ -111,6 +112,8 @@ void QgsOfflineEditingPlugin::convertProject()
111112
if ( mOfflineEditing->convertToOfflineProject( myPluginGui->offlineDataPath(), myPluginGui->offlineDbFile(), selectedLayerIds ) )
112113
{
113114
updateActions();
115+
// Redraw, to make the offline layer visible
116+
mQGisIface->mapCanvas()->refreshAllLayers();
114117
}
115118
}
116119

0 commit comments

Comments
 (0)