Commit c5f0c679 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Prefer the convenient methods for accesing profile options

parent 064c9922
......@@ -547,8 +547,7 @@ void EditProfileDialog::updateKeyBindingsList(bool selectCurrentTranslator)
if (!_ui->keyBindingList->model())
_ui->keyBindingList->setModel(new QStandardItemModel(this));
const QString& name = lookupProfile()
->property<QString>(Profile::KeyBindings);
const QString& name = lookupProfile()->keyBindings();
KeyboardTranslatorManager* keyManager = KeyboardTranslatorManager::instance();
const KeyboardTranslator* currentTranslator = keyManager->findTranslator(name);
......
......@@ -123,7 +123,7 @@ SessionManager* SessionManager::instance()
Profile::Ptr SessionManager::loadProfile(const QString& shortPath)
{
// the fallback profile has a 'special' path name, "FALLBACK/"
if (shortPath == _fallbackProfile->property<QString>(Profile::Path))
if (shortPath == _fallbackProfile->path())
return _fallbackProfile;
QString path = shortPath;
......@@ -221,7 +221,7 @@ void SessionManager::sortProfiles(QList<Profile::Ptr>& list)
for (int i = 0; i < list.size(); ++i) {
// dis-regard the fallback profile
if (list.at(i)->path() == _fallbackProfile->property<QString>(Profile::Path))
if (list.at(i)->path() == _fallbackProfile->path())
continue;
if (list.at(i)->menuIndexAsInt() == 0)
......
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