Skip to content

Commit

Permalink
Use a proxy progress task for vacuuming gpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 11, 2018
1 parent 68f4cf2 commit f8bbc12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/ogr/qgsgeopackagedataitems.cpp
Expand Up @@ -27,6 +27,7 @@
#include "qgsogrdataitems.h"
#ifdef HAVE_GUI
#include "qgsnewgeopackagelayerdialog.h"
#include "qgsproxyprogresstask.h"
#endif
#include "qgsmessageoutput.h"
#include "qgsvectorlayerexporter.h"
Expand Down Expand Up @@ -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( ) )
Expand Down

0 comments on commit f8bbc12

Please sign in to comment.