Skip to content
Permalink
Browse files

Use a proxy progress task for vacuuming gpkg

  • Loading branch information
nyalldawson committed Oct 11, 2018
1 parent 68f4cf2 commit f8bbc12c48173044e4c875b39caee6fcb0a00d8a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -27,6 +27,7 @@
#include "qgsogrdataitems.h"
#ifdef HAVE_GUI
#include "qgsnewgeopackagelayerdialog.h"
#include "qgsproxyprogresstask.h"
#endif
#include "qgsmessageoutput.h"
#include "qgsvectorlayerexporter.h"
@@ -535,6 +536,8 @@ void QgsGeoPackageAbstractLayerItem::deleteLayer()

bool QgsGeoPackageCollectionItem::vacuumGeoPackageDb( const QString &path, const QString &name, QString &errCause )
{
QgsScopedProxyProgressTask task( tr( "Vacuuming %1" ).arg( name ) );

bool result = false;
// Better safe than sorry
if ( ! path.isEmpty( ) )

0 comments on commit f8bbc12

Please sign in to comment.
You can’t perform that action at this time.