Commit 98810a0d authored by Halla Rempt's avatar Halla Rempt

Assert if there is no krita.rc file at all.

parent 3c068add
......@@ -378,6 +378,10 @@ KisMainWindow::KisMainWindow()
QString doc;
QStringList allFiles = KGlobal::dirs()->findAllResources("data", "krita/krita.rc");
KIS_ASSERT(allFiles.size() > 0);
kis_assert_exception(allFiles.size() > 0); // We need at least one krita.rc file!
setXMLFile(findMostRecentXMLFile(allFiles, doc));
setLocalXMLFile(KStandardDirs::locateLocal("data", "krita/krita.rc"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment