summaryrefslogtreecommitdiffstats
path: root/tests/testgitstorage.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-18 12:05:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-18 12:05:07 -0700
commitade206715553cacec71269e9c05f5deefee66d03 (patch)
tree43973dfa5ce1bddff5f52ad32af69e39c3967075 /tests/testgitstorage.cpp
parent5ba74130c09001fbd9f209788f80052a3d85b192 (diff)
downloadsubsurface-ade206715553cacec71269e9c05f5deefee66d03.tar.gz
Git storage test: need to instantiate the window title updater class
Otherwise calling the static function can cause a crash in mark_divelist_changed() Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testgitstorage.cpp')
-rw-r--r--tests/testgitstorage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testgitstorage.cpp b/tests/testgitstorage.cpp
index 57a36d10a..1b7c50fdb 100644
--- a/tests/testgitstorage.cpp
+++ b/tests/testgitstorage.cpp
@@ -4,6 +4,7 @@
#include "file.h"
#include "git2.h"
#include "prefs-macros.h"
+#include "windowtitleupdate.h"
#include <QDir>
#include <QTextStream>
#include <QNetworkProxy>
@@ -54,6 +55,7 @@ void TestGitStorage::testSetup()
QString localCacheDir(get_local_dir("https://cloud.subsurface-divelog.org/git/ssrftest@hohndel.org", "ssrftest@hohndel.org"));
QDir localCacheDirectory(localCacheDir);
QCOMPARE(localCacheDirectory.removeRecursively(), true);
+ WindowTitleUpdate *wtu = new WindowTitleUpdate();
}
void TestGitStorage::testGitStorageLocal()