Use a proxy progress task for vacuuming gpkg

This commit is contained in:
Nyall Dawson 2018-10-11 16:20:48 +10:00
parent 68f4cf2d0f
commit f8bbc12c48

View File

@ -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( ) )