Tips close with the main window (#3305)

* tips close with main window

* null verification added
This commit is contained in:
David Szabo 2018-06-25 01:37:30 +02:00 committed by Zach H
parent 2354a6f89d
commit 87eb132af1
3 changed files with 19 additions and 9 deletions

View file

@ -22,7 +22,6 @@
#include "QtNetwork/QNetworkInterface"
#include "carddatabase.h"
#include "dlg_settings.h"
#include "dlg_tip_of_the_day.h"
#include "featureset.h"
#include "logger.h"
#include "pixmapgenerator.h"
@ -142,11 +141,6 @@ int main(int argc, char *argv[])
ui.show();
qDebug("main(): ui.show() finished");
DlgTipOfTheDay tip;
if (tip.successfulInit && settingsCache->getShowTipsOnStartup() && tip.newTipsAvailable) {
tip.show();
}
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
app.exec();