mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Use a proxy progress task for vacuuming gpkg
This commit is contained in:
parent
68f4cf2d0f
commit
f8bbc12c48
@ -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( ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user