aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-02-02 01:12:36 +0000
committerGravatar Szymon Tomasz Stefanek2011-02-02 01:12:36 +0000
commit7d53115a98a4e87fab5012c00b8f0f31a2641485 (patch)
tree71ed38dff44fc4f479930d701230e77056bf914f /src/modules/addon
parentupdated turkish translation (diff)
downloadKVIrc-7d53115a98a4e87fab5012c00b8f0f31a2641485.tar.gz
KVIrc-7d53115a98a4e87fab5012c00b8f0f31a2641485.tar.bz2
KVIrc-7d53115a98a4e87fab5012c00b8f0f31a2641485.zip
Some addon-related fixes
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5409 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon')
-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;
}