Skip to content

Commit

Permalink
Fixing issue with CookieJar not loading at boot.
Browse files Browse the repository at this point in the history
* Using the "QTimer::singleShot" bites back in the ass
* The "script" takes priority and runs before the SLOT is actually invoked

Why was I using a Timer?
Not sure anymore: it must have slipped in while I was trying to work out
all the other issues I had with QNetworkCookieJar, and I left it there.

http://code.google.com/p/phantomjs/issues/detail?id=790
  • Loading branch information
detro authored and ariya committed Sep 21, 2012
1 parent 8ab4209 commit 32e2333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cookiejar.cpp
Expand Up @@ -84,7 +84,7 @@ CookieJar::CookieJar(QString cookiesFile, QObject *parent)
, m_cookieStorage(new QSettings(cookiesFile, QSettings::IniFormat, this))
, m_enabled(true)
{
QTimer::singleShot(0, this, SLOT(load()));
load();
}

// public:
Expand Down

0 comments on commit 32e2333

Please sign in to comment.