summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/pages/VersionPage.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp
index 99232a25..cc728e75 100644
--- a/gui/pages/VersionPage.cpp
+++ b/gui/pages/VersionPage.cpp
@@ -358,9 +358,14 @@ void VersionPage::versionCurrent(const QModelIndex &current, const QModelIndex &
if (!current.isValid())
{
ui->removeLibraryBtn->setDisabled(true);
+ ui->moveLibraryDownBtn->setDisabled(true);
+ ui->moveLibraryUpBtn->setDisabled(true);
}
else
{
- ui->removeLibraryBtn->setEnabled(m_version->canRemove(current.row()));
+ bool enabled = m_version->canRemove(current.row());
+ ui->removeLibraryBtn->setEnabled(enabled);
+ ui->moveLibraryDownBtn->setEnabled(enabled);
+ ui->moveLibraryUpBtn->setEnabled(enabled);
}
}