mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Show error message when QSQLITE plugin is not available
This commit is contained in:
parent
6d06975ccb
commit
aac873bbb6
|
@ -32,7 +32,6 @@
|
|||
#include "rssmanager.h"
|
||||
#include "proxystyle.h"
|
||||
#include "pluginproxy.h"
|
||||
#include "sqldatabase.h"
|
||||
#include "iconprovider.h"
|
||||
#include "browserwindow.h"
|
||||
#include "networkmanager.h"
|
||||
|
@ -55,6 +54,7 @@
|
|||
#include <QFontDatabase>
|
||||
#include <QSqlDatabase>
|
||||
#include <QLibraryInfo>
|
||||
#include <QMessageBox>
|
||||
#include <QTranslator>
|
||||
#include <QThreadPool>
|
||||
#include <QSettings>
|
||||
|
@ -111,6 +111,14 @@ MainApplication::MainApplication(int &argc, char** argv)
|
|||
QIcon::setThemeName(QSL("oxygen-fallback"));
|
||||
}
|
||||
|
||||
// QSQLITE database plugin is required
|
||||
if (!QSqlDatabase::isDriverAvailable(QSL("QSQLITE"))) {
|
||||
QMessageBox::critical(0, QSL("Error"), QSL("Qt SQLite database plugin is not available. "
|
||||
"Please install it and restart the application."));
|
||||
m_isClosing = true;
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
// Set default app font (needed for N'ko)
|
||||
int fontId = QFontDatabase::addApplicationFont(QSL("font.ttf"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user