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/toolbareditor/libkvitoolbareditor.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/modules/toolbareditor/libkvitoolbareditor.cpp') diff --git a/src/modules/toolbareditor/libkvitoolbareditor.cpp b/src/modules/toolbareditor/libkvitoolbareditor.cpp index b2f319289..4462175ce 100644 --- a/src/modules/toolbareditor/libkvitoolbareditor.cpp +++ b/src/modules/toolbareditor/libkvitoolbareditor.cpp @@ -42,15 +42,17 @@ QRect g_rectToolBarEditorDialogGeometry(0,0,0,0); @short: Shows the script toolbar editor @syntax: - toolbareditor.open + toolbareditor.open [-t] @description: - Opens the script toolbar editor dialog. + Opens the script toolbar editor dialog.[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 toolbareditor_kvs_cmd_open(KviKvsModuleCommandCall *) +static bool toolbareditor_kvs_cmd_open(KviKvsModuleCommandCall *c) { - KviCustomizeToolBarsDialog::display(); + KviCustomizeToolBarsDialog::display(c->hasSwitch('t',"toplevel")); return true; } -- cgit v1.3.1-10-gc9f91