Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a fix for the lp-tray for the application closing after a window …

…gets closed.
  • Loading branch information...
commit dbb91c38e69e2ad3d269da0d67a971f08deb54d7 1 parent 06d4401
@beanpole135 beanpole135 authored
Showing with 7 additions and 2 deletions.
  1. +1 −1  lp-tray/Makefile
  2. +6 −1 lp-tray/main.cpp
View
2  lp-tray/Makefile
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: life-preserver-tray
-# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Oct 3 15:30:06 2013
+# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Oct 10 10:49:34 2013
# Project: lp-tray.pro
# Template: app
# Command: /usr/local/bin/qmake-qt4 -o Makefile lp-tray.pro
View
7 lp-tray/main.cpp
@@ -38,5 +38,10 @@ int main( int argc, char ** argv )
w->show();
QObject::connect( &a, SIGNAL( messageReceived(const QString &) ), w, SLOT( slotSingleInstance() ) );
- return a.exec();
+ int ret = -1;
+ while( w->isVisible() ){
+ //Make sure the application does not exit while the tray is still open
+ ret = a.exec();
+ }
+ return ret;
}
Please sign in to comment.
Something went wrong with that request. Please try again.