Remove potentially dangerous processEvent calls

This commit is contained in:
Daniel Molkentin 2013-01-02 16:40:07 +01:00
parent 6af1a52305
commit 9cdf2d8150
2 changed files with 0 additions and 4 deletions

View file

@ -85,7 +85,6 @@ Application::Application(int &argc, char **argv) :
setupLogBrowser(); setupLogBrowser();
//no need to waste time; //no need to waste time;
if ( _helpOnly ) return; if ( _helpOnly ) return;
processEvents();
QTranslator *qtTranslator = new QTranslator(this); QTranslator *qtTranslator = new QTranslator(this);
qtTranslator->load(QLatin1String("qt_") + QLocale::system().name(), qtTranslator->load(QLatin1String("qt_") + QLocale::system().name(),
@ -157,7 +156,6 @@ Application::Application(int &argc, char **argv) :
setupActions(); setupActions();
setupSystemTray(); setupSystemTray();
setupProxy(); setupProxy();
processEvents();
QObject::connect( this, SIGNAL(messageReceived(QString)), QObject::connect( this, SIGNAL(messageReceived(QString)),
this, SLOT(slotOpenStatus()) ); this, SLOT(slotOpenStatus()) );
@ -350,7 +348,6 @@ void Application::slotAuthCheck( const QString& ,QNetworkReply *reply )
if( cnt ) { if( cnt ) {
_tray->setIcon( _theme->syncStateIcon( SyncResult::NotYetStarted, true ) ); _tray->setIcon( _theme->syncStateIcon( SyncResult::NotYetStarted, true ) );
_tray->show(); _tray->show();
processEvents();
if( _tray ) if( _tray )
_tray->showMessage(tr("%1 Sync Started").arg(_theme->appName()), _tray->showMessage(tr("%1 Sync Started").arg(_theme->appName()),

View file

@ -188,7 +188,6 @@ void LogBrowser::search( const QString& str )
void LogBrowser::slotSave() void LogBrowser::slotSave()
{ {
_saveBtn->setEnabled(false); _saveBtn->setEnabled(false);
QCoreApplication::processEvents();
QString saveFile = QFileDialog::getSaveFileName( this, tr("Save log file"), QDir::homePath() ); QString saveFile = QFileDialog::getSaveFileName( this, tr("Save log file"), QDir::homePath() );