Bug 706935 - file upload on Meego Harmattan don't working. r=dougt

This commit is contained in:
Oleg Romashin 2011-12-06 19:29:58 -05:00
parent 3a761719d5
commit 91d92aa2c0
2 changed files with 5 additions and 3 deletions

View File

@ -63,7 +63,7 @@ nsFastStartup::symbolsLoadingFinished(bool preloaded)
{
mSymbolsLoaded = preloaded;
if (mWidgetPainted && mSymbolsLoaded) {
qApp->quit();
mLoop.quit();
}
}
@ -71,7 +71,7 @@ void nsFastStartup::painted()
{
mWidgetPainted = true;
if (mWidgetPainted && mSymbolsLoaded) {
qApp->quit();
mLoop.quit();
}
}
@ -159,7 +159,7 @@ nsFastStartup::CreateFastStartup(int& argc, char ** argv,
// Start native loop in order to get view opened and painted once
// Will block CreateFastStartup function and
// exit when symbols are loaded and Static UI shown
qApp->exec();
mLoop.exec();
return true;
}

View File

@ -42,6 +42,7 @@
#include <QObject>
#include "nscore.h"
#include <QThread>
#include <QEventLoop>
#include <sys/time.h>
class QGraphicsView;
@ -106,6 +107,7 @@ private:
bool mSymbolsLoaded;
bool mWidgetPainted;
GeckoThread* mThread;
QEventLoop mLoop;
};
#endif