Skip to content

Commit

Permalink
Explicitly check if windows exist when run as Dbus service
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed May 17, 2016
1 parent 1ed22ef commit 27556e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/gx/terminix/application.d
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ private:
if (appWindow !is null) return appWindow;

ListG list = getWindows();
if (list is null) return null;
Window[] windows = list.toArray!(Window)();
foreach(window; windows) {
appWindow = cast(AppWindow) window;
Expand Down

0 comments on commit 27556e7

Please sign in to comment.