mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
5ba74130c0
commit
ade2067155
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue