summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-28 15:19:30 +0200
committerinfirit <[email protected]>2014-07-28 15:19:30 +0200
commitf5ae31fe150db149a07be9ca8d4e2048f85d5a4b (patch)
tree132b9d0931e0132516c37414f55ac3340f3aa009
parent0dc76c03d545792ae0c90487edff633a94bf87f4 (diff)
downloadeom-f5ae31fe150db149a07be9ca8d4e2048f85d5a4b.tar.bz2
eom-f5ae31fe150db149a07be9ca8d4e2048f85d5a4b.tar.xz
Check if an editor has been set before comparing it to other apps
Based on eog commit 349676e43252477219d07cad279861bd9484d94d From Felix Riemann <[email protected]>
-rw-r--r--src/eom-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 3efc91a..604f146 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -990,7 +990,7 @@ eom_window_update_openwith_menu (EomWindow *window, EomImage *image)
GAppInfo *app = iter->data;
gchar name[64];
- if (g_app_info_equal (editor_app, app)) {
+ if (editor_app != NULL && g_app_info_equal (editor_app, app)) {
edit_button_active = TRUE;
}