diff options
| author | Tannin <devnull@localhost> | 2015-08-02 20:09:56 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-08-02 20:09:56 +0200 |
| commit | 643a50ad5a6f6851db63ece41a399d9783dc5acd (patch) | |
| tree | 3de48db745f117f45aa7f206b09df4aa956f32de /src/editexecutablesdialog.cpp | |
| parent | 9c17ecc87ee6e1af87b6ee7e1b970d15dd19fbe3 (diff) | |
- changed the way flags on executables are stored in memory
- some coding style fixes
Diffstat (limited to 'src/editexecutablesdialog.cpp')
| -rw-r--r-- | src/editexecutablesdialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp index 97154789..47f9262d 100644 --- a/src/editexecutablesdialog.cpp +++ b/src/editexecutablesdialog.cpp @@ -60,7 +60,8 @@ void EditExecutablesDialog::refreshExecutablesWidget() for(; current != end; ++current) { QListWidgetItem *newItem = new QListWidgetItem(current->m_Title); - newItem->setTextColor(current->m_Type == Executable::Type::Custom ? QColor(Qt::black) : QColor(Qt::darkGray)); + newItem->setTextColor((current->m_Flags & Executable::CustomExecutable) ? QColor(Qt::black) + : QColor(Qt::darkGray)); ui->executablesListBox->addItem(newItem); } @@ -100,10 +101,8 @@ void EditExecutablesDialog::saveExecutable() : ExecutableInfo::CloseMOStyle::DEFAULT_STAY, ui->overwriteAppIDBox->isChecked() ? ui->appIDOverwriteEdit->text() : "", - Executable::Type::Custom, - Executable::Toolbar::Disabled, ui->useAppIconCheckBox->isChecked() ? - Executable::Icon::Application : Executable::Icon::MO); + Executable::UseApplicationIcon : Executable::Flags()); } |
