diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-18 12:05:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-18 12:05:07 -0700 |
commit | ade206715553cacec71269e9c05f5deefee66d03 (patch) | |
tree | 43973dfa5ce1bddff5f52ad32af69e39c3967075 /tests | |
parent | 5ba74130c09001fbd9f209788f80052a3d85b192 (diff) | |
download | subsurface-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')
-rw-r--r-- | tests/testgitstorage.cpp | 2 |
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() |