aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/managementdialog.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2009-10-28 01:48:31 +0000
committerGravatar Elvio Basello2009-10-28 01:48:31 +0000
commit9da6b24b5684270fc96eed34cffb969b786fa389 (patch)
tree8714a31b41fa22564818154dd8ae4c3ddea5132d /src/modules/addon/managementdialog.cpp
parentfix for #587 (diff)
downloadKVIrc-9da6b24b5684270fc96eed34cffb969b786fa389.tar.gz
KVIrc-9da6b24b5684270fc96eed34cffb969b786fa389.tar.bz2
KVIrc-9da6b24b5684270fc96eed34cffb969b786fa389.zip
moar work on addon packaging system (wip), updated its doc;
removed useless filter; I somehow introduced a glitch in the installer creation, I'll investigate on this git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3580 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon/managementdialog.cpp')
-rw-r--r--src/modules/addon/managementdialog.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/addon/managementdialog.cpp b/src/modules/addon/managementdialog.cpp
index 8acfd3e53..6f01d26da 100644
--- a/src/modules/addon/managementdialog.cpp
+++ b/src/modules/addon/managementdialog.cpp
@@ -277,20 +277,13 @@ void KviScriptManagementDialog::installScript()
if(!KviFileDialog::askForOpenFileName(
szFileName,
__tr2qs("Please select the addon installation file"),
- QString(),KVI_FILTER_SCRIPTS,false,true
+ QString(),KVI_FILTER_ADDON,false,true
)) return;
szFileName.replace("\\","\\\\");
- // Switch between script and addon
- if(szFileName.endsWith(".kvs"))
- {
- QString szCmd = "parse \"";
- szCmd += szFileName;
- szCmd += "\"";
-
- KviKvsScript::run(szCmd,g_pActiveWindow);
- } else if(szFileName.endsWith(".kva"))
+ // Sanity check
+ if(szFileName.endsWith(".kva"))
{
if(!KviAddonFunctions::installAddonPackage(szFileName,szError,this))
{