summaryrefslogtreecommitdiffstats
path: root/kexi/main
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:53:26 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:53:26 -0600
commitc91e96258b6c127201397dd5309c4433655e63b2 (patch)
tree85682ed6f7056b51a95e85cf1711ffcc74588d34 /kexi/main
parent5ec453c2580654ef1d9c019964fa3b9cf3c601a9 (diff)
downloadkoffice-c91e96258b6c127201397dd5309c4433655e63b2.tar.gz
koffice-c91e96258b6c127201397dd5309c4433655e63b2.zip
Apply a number of kexi patches
This closes Bug 777
Diffstat (limited to 'kexi/main')
-rw-r--r--kexi/main/keximainwindowimpl.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/kexi/main/keximainwindowimpl.cpp b/kexi/main/keximainwindowimpl.cpp
index 5e39ab13..f6be589a 100644
--- a/kexi/main/keximainwindowimpl.cpp
+++ b/kexi/main/keximainwindowimpl.cpp
@@ -4203,8 +4203,10 @@ void KexiMainWindowImpl::slotToolsCompactDatabase()
data = new KexiProjectData(*d->prj->data()); // a copy
drv = d->prj->dbConnection()->driver();
const tristate res = closeProject();
- if (~res || !res)
+ if (~res || !res) {
+ delete data;
return;
+ }
}
if (!drv->adminTools().vacuum(*data->connectionData(), data->databaseName())) {
@@ -4212,10 +4214,9 @@ void KexiMainWindowImpl::slotToolsCompactDatabase()
showErrorMessage( &drv->adminTools() );
}
- if (data && projectWasOpened) {
+ if (projectWasOpened)
openProject(*data);
- delete data;
- }
+ delete data;
}
tristate KexiMainWindowImpl::showProjectMigrationWizard(