@ -48,7 +48,13 @@ cFileBrowser::cFileBrowser(QProgressBar* lpProgressBar, QList<IMAGEFORMAT>* lpIm
m_cacheDB.open();
if(!m_cacheDB.open())
return;
{
QDir dir(userDir());
dir.mkpath(userDir());
}
QSqlQuery query(m_cacheDB);
@ -16,7 +16,7 @@ cMainWindow::cMainWindow(cSplashScreen* lpSplashScreen, QWidget *parent)
: QMainWindow(parent),
ui(new Ui::cMainWindow),
m_lpSplashScreen(lpSplashScreen),
m_lpFileBrowser(0)
m_lpFileBrowser(nullptr)
setImageFormats();