summaryrefslogtreecommitdiffstats
path: root/source/dialogs/combi.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-09-14 08:57:10 +0200
committerDave Davenport <qball@gmpclient.org>2015-09-14 08:57:10 +0200
commita5c1eb1f1b9e35468fa662494991b191127f2e95 (patch)
tree10fbdae7f5e5bc5f1aef856e8cd02780182d5113 /source/dialogs/combi.c
parent30c4ad116956c057bb15f6260ea5fd9ac4a97747 (diff)
Allow window mode to be disabled
Diffstat (limited to 'source/dialogs/combi.c')
-rw-r--r--source/dialogs/combi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/dialogs/combi.c b/source/dialogs/combi.c
index 58addf77..6e3c103d 100644
--- a/source/dialogs/combi.c
+++ b/source/dialogs/combi.c
@@ -66,11 +66,17 @@ static void combi_mode_parse_switchers ( Switcher *sw )
sizeof ( Switcher* ) * ( pd->num_switchers + 1 ) );
// Window switcher.
+ #ifdef WINDOW_MODE
if ( strcasecmp ( token, "window" ) == 0 ) {
pd->switchers[pd->num_switchers++] = &window_mode;
}
+ else if ( strcasecmp ( token, "windowcd" ) == 0 ) {
+ pd->switchers[pd->num_switchers++] = &window_mode_cd;
+ }
+ else
+ #endif // WINDOW_MODE
// SSh dialog
- else if ( strcasecmp ( token, "ssh" ) == 0 ) {
+ if ( strcasecmp ( token, "ssh" ) == 0 ) {
pd->switchers[pd->num_switchers++] = &ssh_mode;
}
// Run dialog