From 580281126e8770dc35104bd8c3130b7cc0698988 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 18 Oct 2010 10:26:31 +0000 Subject: fix for #976 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5090 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/addon/libkviaddon.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/modules/addon/libkviaddon.cpp') diff --git a/src/modules/addon/libkviaddon.cpp b/src/modules/addon/libkviaddon.cpp index 6bfe7bedf..e3a50677d 100644 --- a/src/modules/addon/libkviaddon.cpp +++ b/src/modules/addon/libkviaddon.cpp @@ -765,14 +765,17 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c) @short: Shows the addon addon management editor @syntax: - addon.dialog + addon.dialog [-t] @description: - Shows the addon addon management editor + Shows the addon addon management editor.[br] + If the [-t] switch is used, the dialog is opened as toplevel window, + otherwise it is opened as part of the current frame window.[br] */ -static bool addon_kvs_cmd_dialog(KviKvsModuleCommandCall *) +static bool addon_kvs_cmd_dialog(KviKvsModuleCommandCall *c) { - KviScriptManagementDialog::display(); + + KviScriptManagementDialog::display(c->hasSwitch('t',"toplevel")); return true; } -- cgit v1.3.1-10-gc9f91