Skip to content

Commit

Permalink
Fix #33, side-effect of re-numbering terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Mar 5, 2016
1 parent 32342b4 commit 23a14fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/gx/terminix/constants.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ enum APPLICATION_ID = "com.gexperts.Terminix";

// Application values used in About Dialog
enum APPLICATION_NAME = "Terminix";
enum APPLICATION_VERSION = "0.52.0";
enum APPLICATION_VERSION = "0.52.1";
enum APPLICATION_AUTHOR = "Gerald Nunn";
enum APPLICATION_COPYRIGHT = "Copyright \xc2\xa9 2016 " ~ APPLICATION_AUTHOR;
enum APPLICATION_COMMENTS = "A VTE based terminal emulator for Linux";
Expand Down
4 changes: 2 additions & 2 deletions source/gx/terminix/session.d
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private:
*/
void removeTerminal(Terminal terminal) {
int id = to!int(terminal.terminalID);
trace("Removing terminal from session");
trace("Removing terminal " ~ terminal.terminalUUID);
if (lastFocused == terminal)
lastFocused = null;
//Remove delegates
Expand Down Expand Up @@ -254,7 +254,7 @@ private:
//Fix Issue #33
if (id >= terminals.length)
id = to!int(terminals.length);
if (id >= 0 && id < terminals.length) {
if (id > 0 && id <= terminals.length) {
focusTerminal(id);
}
if (maximizedTerminal !is null) {
Expand Down

0 comments on commit 23a14fa

Please sign in to comment.