mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 "git2.h"
|
||||||
#include "subsurfacestartup.h"
|
#include "subsurfacestartup.h"
|
||||||
#include "divelogexportlogic.h"
|
#include "divelogexportlogic.h"
|
||||||
|
#include "windowtitleupdate.h"
|
||||||
|
|
||||||
QTranslator *qtTranslator, *ssrfTranslator;
|
QTranslator *qtTranslator, *ssrfTranslator;
|
||||||
|
|
||||||
|
@ -40,7 +41,7 @@ int main(int argc, char **argv)
|
||||||
qDebug() << "need --source and --output";
|
qDebug() << "need --source and --output";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
WindowTitleUpdate *wtu = new WindowTitleUpdate();
|
||||||
int ret = parse_file(qPrintable(source));
|
int ret = parse_file(qPrintable(source));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
fprintf(stderr, "parse_file returned %d\n", ret);
|
fprintf(stderr, "parse_file returned %d\n", ret);
|
||||||
|
|
Loading…
Add table
Reference in a new issue