added exit and notification on 7z lib not found

This commit is contained in:
Luis Ángel San Martín
2013-11-24 12:55:03 +01:00
parent 92331af971
commit 8255637028
12 changed files with 105 additions and 13 deletions

View File

@ -9,6 +9,7 @@
#include <QFileInfo>
#include <QSettings>
#include <QLibrary>
#include <QMessageBox>
#include "yacreader_global.h"
#include "startup.h"
@ -16,6 +17,7 @@
#include "comic_db.h"
#include "db_helper.h"
#include "yacreader_libraries.h"
#include "exit_check.h"
#include "QsLog.h"
#include "QsLogDest.h"
@ -186,12 +188,14 @@ int main( int argc, char ** argv )
int ret = app.exec();
QLOG_INFO() << "YACReaderLibrary closed with exit code :" << ret;
YACReader::exitCheck(ret);
//server shutdown
s->stop();
delete s;
QLOG_INFO() << "YACReaderLibrary closed";
QsLogging::Logger::destroyInstance();
return ret;