about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDavid <petrodavi@gmail.com>2016-03-13 17:52:49 +0100
committerDavid <petrodavi@gmail.com>2016-03-13 17:52:49 +0100
commitbdad30b2d9111a5c86edeabf811481469ef0f8b4 (patch)
tree292f3389b81a075b3c2ef772f32479c806f1b067 /src
parent028d24283ecf601af925224d71731f3cdfb32a02 (diff)
downloadprofani-tty-bdad30b2d9111a5c86edeabf811481469ef0f8b4.tar.gz
This case was clearly not tested locally, so many failures here.
I guess now this should be fine, at least for the no gui case.
Locally it is working fine btw.

I miss Gerrit and the ability to test before pushing right now... :'(
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 44ca90bd..50f564c7 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -137,7 +137,9 @@ prof_run(char *log_level, char *account_name, gboolean use_gtk)
         jabber_process_events(10);
         iq_autoping_check();
         ui_update();
-        gtk_main_iteration_do(false);
+        if (gtk_enabled) {
+            gtk_main_iteration_do(false);
+        }
     }
 }