diff options
Diffstat (limited to 'src/plugins/git/remotedialog.cpp')
-rw-r--r-- | src/plugins/git/remotedialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/remotedialog.cpp b/src/plugins/git/remotedialog.cpp index e02f62ad5f..50b7a994f2 100644 --- a/src/plugins/git/remotedialog.cpp +++ b/src/plugins/git/remotedialog.cpp @@ -223,7 +223,7 @@ void RemoteDialog::updateButtonState() { const QModelIndexList indexList = m_ui->remoteView->selectionModel()->selectedIndexes(); - const bool haveSelection = (indexList.count() > 0); + const bool haveSelection = !indexList.isEmpty(); m_ui->addButton->setEnabled(true); m_ui->fetchButton->setEnabled(haveSelection); m_ui->pushButton->setEnabled(haveSelection); |