mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-11 22:45:25 +00:00
Fix standardR2ThemesLocationPath
This commit is contained in:
parent
a73492a718
commit
d625681391
@ -47,19 +47,11 @@ ColorSchemeFileSaver::ColorSchemeFileSaver(QObject *parent) : QObject (parent)
|
|||||||
currDir.setPath("");
|
currDir.setPath("");
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList entry = currDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
|
currDir.setPath(QString(r_sys_prefix(nullptr)) + QString(R_SYS_DIR) + R2_THEMES);
|
||||||
standardR2ThemesLocationPath = currDir.absolutePath();
|
if (currDir.exists()) {
|
||||||
currDir.setPath("");
|
standardR2ThemesLocationPath = currDir.absolutePath();
|
||||||
for (auto it : entry) {
|
} else {
|
||||||
it = standardR2ThemesLocationPath + QDir::separator() + it + QDir::separator() + "cons";
|
standardR2ThemesLocationPath = "";
|
||||||
if (QDir(it).exists()) {
|
|
||||||
currDir = it;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
standardR2ThemesLocationPath = currDir.absolutePath();
|
|
||||||
if (standardR2ThemesLocationPath == "") {
|
|
||||||
QMessageBox mb;
|
QMessageBox mb;
|
||||||
mb.setIcon(QMessageBox::Critical);
|
mb.setIcon(QMessageBox::Critical);
|
||||||
mb.setStandardButtons(QMessageBox::Ok);
|
mb.setStandardButtons(QMessageBox::Ok);
|
||||||
|
Loading…
Reference in New Issue
Block a user