aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/managementdialog.cpp
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-05-16 01:20:32 +0000
committerGravatar Elvio Basello2008-05-16 01:20:32 +0000
commita8a9bcb75cd8ad25ed2d3ca24a149a11f8ceb0e7 (patch)
treeabab436dcecabe382b36a2e421be25a06242504a /src/modules/addon/managementdialog.cpp
parenttwo small qt4 fixes (diff)
downloadKVIrc-a8a9bcb75cd8ad25ed2d3ca24a149a11f8ceb0e7.tar.gz
KVIrc-a8a9bcb75cd8ad25ed2d3ca24a149a11f8ceb0e7.tar.bz2
KVIrc-a8a9bcb75cd8ad25ed2d3ca24a149a11f8ceb0e7.zip
more work on addon manager (wip); added a test addon; bumped sources date
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1789 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon/managementdialog.cpp')
-rw-r--r--src/modules/addon/managementdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/addon/managementdialog.cpp b/src/modules/addon/managementdialog.cpp
index 4b9a4a8c9..5bd17aa9a 100644
--- a/src/modules/addon/managementdialog.cpp
+++ b/src/modules/addon/managementdialog.cpp
@@ -288,12 +288,14 @@ void KviScriptManagementDialog::installScript()
// Switch between script and addon
if(szFileName.endsWith(".kvs"))
{
+ qDebug("Script file .kvs");
QString szCmd = "parse \"";
szCmd += szFileName;
szCmd += "\"";
KviKvsScript::run(szCmd,g_pActiveWindow);
} else if(szFileName.endsWith(".kva")){
+ qDebug("Addon file .kva");
if(!KviAddonFunctions::installAddonPackage(szFileName,szError,this))
{
QMessageBox::critical(this,__tr2qs_ctx("Install Addon - KVIrc","addon"),szError,QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
@@ -301,6 +303,7 @@ void KviScriptManagementDialog::installScript()
}
} else {
// Just for sanity check. We should NEVER enter here
+ qDebug("Entered sanity check");
KviAddonFunctions::notAValidAddonPackage(szError);
QMessageBox::critical(this,__tr2qs_ctx("Install Addon - KVIrc","addon"),szError,QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
}