]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxgui.cpp
small fix in auth (#693)
[proxmark3-svn] / client / proxgui.cpp
index e899174c419870e2e78014e609f0f3faa2f38f04..18749158c1110f7e0bc6031f558b6d5baff6f61f 100644 (file)
@@ -62,12 +62,9 @@ extern "C" void MainGraphics(void)
 extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present)
 {
 #ifdef Q_WS_X11
-       bool useGUI = getenv("DISPLAY") != 0;
-#else
-       bool useGUI = true;
-#endif
-       if (!useGUI)
+       if (getenv("DISPLAY") == NULL)
                return;
+#endif
 
        main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, usb_present);
        gui = new ProxGuiQT(argc, argv, main_loop_thread);
Impressum, Datenschutz