summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2011-04-13 22:09:55 +0200
committerJonathan Bauer2011-04-13 22:09:55 +0200
commitf3bff47bcd44df47f1ee0e740214919d2e6f7a84 (patch)
tree77a7aa8f32b5b8ef02134d282d4556cd29e3c8a7
parentskip trigger checks if trigger is already present (diff)
downloadfbgui-f3bff47bcd44df47f1ee0e740214919d2e6f7a84.tar.gz
fbgui-f3bff47bcd44df47f1ee0e740214919d2e6f7a84.tar.xz
fbgui-f3bff47bcd44df47f1ee0e740214919d2e6f7a84.zip
trigger watch fix & waiting cursor until URL
-rw-r--r--src/fbgui.cpp9
-rw-r--r--src/main.cpp2
-rwxr-xr-xsrc/testApp.sh2
3 files changed, 7 insertions, 6 deletions
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;
diff --git a/src/main.cpp b/src/main.cpp
index c816157..a07a8f4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
qxtLog->debug() << "*******************************************";
// set invisible cursor
- qApp->setOverrideCursor(QCursor(Qt::BlankCursor));
+ qApp->setOverrideCursor(QCursor(Qt::WaitCursor));
// start fbgui
fbgui gui;
diff --git a/src/testApp.sh b/src/testApp.sh
index 3f1fe82..c924500 100755
--- a/src/testApp.sh
+++ b/src/testApp.sh
@@ -13,7 +13,7 @@
# Note: all path are expected to be absolute.
# clean /tmp/fbgui
-#rm -rf /tmp/fbgui
+rm -rf /tmp/fbgui
# path to script (including script name)
script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"