~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to ktimetracker/mainwindow.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <QMenu>
27
27
#include <QString>
 
28
#include <QTimer>
28
29
 
29
30
#include <KAction>
30
31
#include <KApplication>       // kapp
86
87
        }
87
88
        else
88
89
        {
 
90
          kError() << "Could not find the KTimeTracker part: m_part is 0";
89
91
          KMessageBox::error(this, i18n( "Could not create the KTimeTracker part." ));
90
 
          qApp->quit();
 
92
          QTimer::singleShot(0, qApp, SLOT(quit()));
91
93
          return;
92
94
        }
93
95
    }
95
97
    {
96
98
        // if we couldn't find our Part, we exit since the Shell by
97
99
        // itself can't do anything useful
 
100
        kError() << "Could not find the KTimeTracker part: factory is 0";
98
101
        KMessageBox::error(this, i18n( "Could not find the KTimeTracker part." ));
99
 
        qApp->quit();
 
102
        QTimer::singleShot(0, qApp, SLOT(quit()));
100
103
        // we return here, cause qApp->quit() only means "exit the
101
104
        // next time we enter the event loop...
102
105
        return;