From ade206715553cacec71269e9c05f5deefee66d03 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 18 Sep 2015 12:05:07 -0700 Subject: 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 --- tests/testgitstorage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/testgitstorage.cpp') 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 #include #include @@ -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() -- cgit v1.2.3-70-g09d2