Skip to content

Commit

Permalink
Fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Jan 15, 2016
1 parent 32b33d7 commit 91882bf
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions source/gx/terminix/appwindow.d
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,17 @@ public:
* Creates a new session and prompts the user for session properties
*/
void createSession() {
SessionProperties sp = new SessionProperties(this, _(DEFAULT_SESSION_NAME), prfMgr.getDefaultProfile());
scope (exit) {
sp.destroy();
}
sp.showAll();
if (sp.run() == ResponseType.OK) {
createSession(sp.name, sp.profileUUID);
if (gsSettings.getBoolean(SETTINGS_PROMPT_ON_NEW_SESSION_KEY)) {
SessionProperties sp = new SessionProperties(this, _(DEFAULT_SESSION_NAME), prfMgr.getDefaultProfile());
scope (exit) {
sp.destroy();
}
sp.showAll();
if (sp.run() == ResponseType.OK) {
createSession(sp.name, sp.profileUUID);
}
} else {
createSession(_(DEFAULT_SESSION_NAME), prfMgr.getDefaultProfile());
}
}

Expand Down

0 comments on commit 91882bf

Please sign in to comment.