projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76f7149
)
* The viewer handler could not exist if the viewer window was created without a...
author
Sergio Villar Senin
<svillar@igalia.com>
Tue, 23 Oct 2007 11:06:16 +0000
(11:06 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Tue, 23 Oct 2007 11:06:16 +0000
(11:06 +0000)
pmo-trunk-r3560
src/widgets/modest-window-mgr.c
patch
|
blob
|
history
diff --git
a/src/widgets/modest-window-mgr.c
b/src/widgets/modest-window-mgr.c
index
f6990de
..
a4153be
100644
(file)
--- a/
src/widgets/modest-window-mgr.c
+++ b/
src/widgets/modest-window-mgr.c
@@
-670,9
+670,13
@@
modest_window_mgr_unregister_window (ModestWindowMgr *self,
HashTable could not exist if the main window was closeed
when there were other windows remaining */
if (MODEST_IS_MSG_VIEW_WINDOW (window) && priv->viewer_handlers) {
HashTable could not exist if the main window was closeed
when there were other windows remaining */
if (MODEST_IS_MSG_VIEW_WINDOW (window) && priv->viewer_handlers) {
- tmp = (gulong *) g_hash_table_lookup (priv->viewer_handlers, window);
- g_signal_handler_disconnect (window, *tmp);
- g_hash_table_remove (priv->viewer_handlers, window);
+ /* If the viewer was created without a main window
+ (for example when opening a message through D-Bus
+ the viewer handlers was not registered */
+ if (tmp) {
+ g_signal_handler_disconnect (window, *tmp);
+ g_hash_table_remove (priv->viewer_handlers, window);
+ }
}
/* Save state */
}
/* Save state */