summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-24 02:28:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-24 02:28:01 -0600
commit2d10fcbf891ee3a034f083ba67dc1a37cbeca387 (patch)
tree74092fd66120a131468d50ee9267740cf8c73b86 /src/kernel/qapplication.cpp
parentcff522f98666e1bf24c36a3a0a2abe3fb2e1abe8 (diff)
downloadtqt3-2d10fcbf891ee3a034f083ba67dc1a37cbeca387.tar.gz
tqt3-2d10fcbf891ee3a034f083ba67dc1a37cbeca387.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r--src/kernel/qapplication.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 76b265926..d67df12b0 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -2931,7 +2931,14 @@ int TQApplication::exec()
*/
void TQApplication::exit( int retcode )
{
- tqApp->eventLoop()->exit( retcode );
+ TQThread* thread = tqApp->guiThread();
+ if (thread) {
+ if (thread->d) {
+ if (thread->d->eventLoop) {
+ thread->d->eventLoop->exit( retcode );
+ }
+ }
+ }
}
/*!