[eog] Check if an editor has been set before comparing it to other apps
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Check if an editor has been set before comparing it to other apps
- Date: Wed, 6 Oct 2010 19:24:56 +0000 (UTC)
commit 349676e43252477219d07cad279861bd9484d94d
Author: Felix Riemann <friemann gnome org>
Date: Wed Oct 6 21:18:49 2010 +0200
Check if an editor has been set before comparing it to other apps
Fixes critical warnings if no editor application has been set.
src/eog-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 1fc4659..d08f1cb 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -985,7 +985,7 @@ eog_window_update_openwith_menu (EogWindow *window, EogImage *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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]