Bug 566118 - nsAppShell initialized earlier than QApplication.

This commit is contained in:
Oleg Romashin 2010-05-15 17:46:18 -04:00
Родитель e304b7ac76
Коммит 9577f1f59e
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -79,7 +79,6 @@
#include <QX11EmbedWidget>
#include <QGraphicsView>
#include <QGraphicsWidget>
#include "nsQAppInstance.h"
#endif
#ifdef MOZ_WIDGET_GTK2
@ -114,9 +113,6 @@ TabChild::Init()
#ifdef MOZ_WIDGET_GTK2
gtk_init(NULL, NULL);
#endif
#ifdef MOZ_WIDGET_QT
nsQAppInstance::AddRef();
#endif
nsCOMPtr<nsIWebBrowser> webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID);
if (!webBrowser) {

Просмотреть файл

@ -85,6 +85,8 @@ nsAppShell::Init()
sPokeEvent = QEvent::User+5000;
#endif
nsQAppInstance::AddRef();
return nsBaseAppShell::Init();
}