mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Prevent crash in export-html
We need to instantiate the window title updater... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7bf398549b
commit
ea6f6b959e
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "git2.h"
|
||||
#include "subsurfacestartup.h"
|
||||
#include "divelogexportlogic.h"
|
||||
#include "windowtitleupdate.h"
|
||||
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
|
@ -40,7 +41,7 @@ int main(int argc, char **argv)
|
|||
qDebug() << "need --source and --output";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
WindowTitleUpdate *wtu = new WindowTitleUpdate();
|
||||
int ret = parse_file(qPrintable(source));
|
||||
if (ret) {
|
||||
fprintf(stderr, "parse_file returned %d\n", ret);
|
||||
|
|
Loading…
Reference in a new issue