summaryrefslogtreecommitdiffstats
path: root/source/rofi.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-03-03 08:21:28 +0100
committerDave Davenport <qball@gmpclient.org>2016-03-03 08:21:28 +0100
commit06d25c0ca2f1788ef1319b2f91ba6303f63f5615 (patch)
treef13009eab75046be57f183cc5259c97714e3a8bc /source/rofi.c
parent3d2f0a07dbbf97dd9273560d12eef84786778c7a (diff)
Quit on error msg fail.
Diffstat (limited to 'source/rofi.c')
-rw-r--r--source/rofi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 3d9d53d8..0c29f7a8 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -264,10 +264,9 @@ int show_error_message ( const char *msg, int markup )
{
int pfd = setup ();
if ( pfd < 0 ) {
- return EXIT_FAILURE;
+ return FALSE;
}
- rofi_view_error_dialog ( msg, markup );
- return EXIT_SUCCESS;
+ return rofi_view_error_dialog ( msg, markup );
}
/**
@@ -524,7 +523,9 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
if ( find_arg ( "-markup" ) >= 0 ) {
markup = TRUE;
}
- show_error_message ( msg, markup );
+ if ( !show_error_message ( msg, markup ) ) {
+ g_main_loop_quit ( main_loop );
+ }
}
else if ( find_arg_str ( "-show", &sname ) == TRUE ) {
int index = switcher_get ( sname );