From f3bff47bcd44df47f1ee0e740214919d2e6f7a84 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 13 Apr 2011 22:09:55 +0200 Subject: trigger watch fix & waiting cursor until URL --- src/fbgui.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/fbgui.cpp') diff --git a/src/fbgui.cpp b/src/fbgui.cpp index f130347..1bfad79 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -171,6 +171,10 @@ void fbgui::checkForTrigger(const QString& dirname) QFileInfo fi(dirname + "/" + tfi.fileName()); if (fi.exists()){ qxtLog->debug() << "[watcher] " << fileToTriggerURL << " detected."; + // disconnect _watcher, his job is done + qxtLog->debug() << "[watcher] disconnected."; + _watcher->disconnect(this); + _watcher->deleteLater(); // memory problems with watcher // load URL if host exists if (checkHost()) loadURL(); } @@ -211,10 +215,7 @@ bool fbgui::checkHost() const */ void fbgui::loadURL() { - // disconnect _watcher, his job is done - //qxtLog->debug() << "[watcher] disconnected."; - //_watcher->disconnect(this); - //_watcher->deleteLater(); // memory problems with watcher + qxtLog->debug() << "[gui] Loading URL..."; QByteArray postData = generatePOSTData(); qxtLog->debug() << "[gui] POST data: " << postData; -- cgit v1.2.3-55-g7522