MIDORI_EVENT_NEW_TAB must check evt != NULL
In Ubuntu 12.04 Unity global menu evt is NULL
This commit is contained in:
parent
cf1321fe21
commit
89bae74a32
1 changed files with 4 additions and 3 deletions
|
@ -33,9 +33,10 @@
|
|||
#endif
|
||||
|
||||
#define MIDORI_EVENT_NEW_TAB(evt) \
|
||||
((((GdkEventButton*)evt)->button == 1 \
|
||||
&& MIDORI_MOD_NEW_TAB(((GdkEventButton*)evt)->state)) \
|
||||
|| (((GdkEventButton*)evt)->button == 2))
|
||||
(evt != NULL \
|
||||
&& ((((GdkEventButton*)evt)->button == 1 \
|
||||
&& MIDORI_MOD_NEW_TAB(((GdkEventButton*)evt)->state)) \
|
||||
|| (((GdkEventButton*)evt)->button == 2)))
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
#define MIDORI_MODULE_PREFIX "lib"
|
||||
|
|
Loading…
Reference in a new issue