aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/AddonFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/addon/AddonFunctions.cpp')
-rw-r--r--src/modules/addon/AddonFunctions.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/addon/AddonFunctions.cpp b/src/modules/addon/AddonFunctions.cpp
index 8f1643071..fb6f9016a 100644
--- a/src/modules/addon/AddonFunctions.cpp
+++ b/src/modules/addon/AddonFunctions.cpp
@@ -36,6 +36,8 @@
#include "KviMainWindow.h"
#include "KviKvsScript.h"
+#include <QMessageBox>
+
#include <QDir>
#include <stdlib.h>
@@ -226,12 +228,7 @@ namespace AddonFunctions
}
if(!KviFileUtils::deleteDir(szUnpackPath))
- {
- // FIXME: Just warn the user and assume success?
- szErr = __tr2qs_ctx("One or more files can't be deleted","addon");
- szError = QString(__tr2qs_ctx("Failed to unpack the selected file: %1","addon")).arg(szErr);
- return false;
- }
+ QMessageBox::warning(NULL,__tr2qs_ctx("Addon Unpack Warning","addon"),__tr2qs_ctx("Failed to delete the directory '%1'","addon").arg(szUnpackPath));
return true;
}