diff options
| author | 2010-10-18 10:26:31 +0000 | |
|---|---|---|
| committer | 2010-10-18 10:26:31 +0000 | |
| commit | 580281126e8770dc35104bd8c3130b7cc0698988 (patch) | |
| tree | a11824ace4d761f3eded4249c0385822e29589a7 /src/modules/toolbareditor/libkvitoolbareditor.cpp | |
| parent | added shortcut ctrl+0 for "restore default font and size in the ircview" , tr... (diff) | |
| download | KVIrc-580281126e8770dc35104bd8c3130b7cc0698988.tar.gz KVIrc-580281126e8770dc35104bd8c3130b7cc0698988.tar.bz2 KVIrc-580281126e8770dc35104bd8c3130b7cc0698988.zip | |
fix for #976
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5090 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/toolbareditor/libkvitoolbareditor.cpp')
| -rw-r--r-- | src/modules/toolbareditor/libkvitoolbareditor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |
