mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +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("");
|
||||
}
|
||||
|
||||
QStringList entry = currDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
|
||||
currDir.setPath(QString(r_sys_prefix(nullptr)) + QString(R_SYS_DIR) + R2_THEMES);
|
||||
if (currDir.exists()) {
|
||||
standardR2ThemesLocationPath = currDir.absolutePath();
|
||||
currDir.setPath("");
|
||||
for (auto it : entry) {
|
||||
it = standardR2ThemesLocationPath + QDir::separator() + it + QDir::separator() + "cons";
|
||||
if (QDir(it).exists()) {
|
||||
currDir = it;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
standardR2ThemesLocationPath = currDir.absolutePath();
|
||||
if (standardR2ThemesLocationPath == "") {
|
||||
} else {
|
||||
standardR2ThemesLocationPath = "";
|
||||
QMessageBox mb;
|
||||
mb.setIcon(QMessageBox::Critical);
|
||||
mb.setStandardButtons(QMessageBox::Ok);
|
||||
|
Loading…
Reference in New Issue
Block a user