forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user