mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
map editor: block remove visit info button if no info to remove
This commit is contained in:
parent
578800b3e3
commit
e7c03e3387
@ -636,10 +636,12 @@ void RewardsWidget::on_visitInfoList_itemSelectionChanged()
|
||||
if(ui->visitInfoList->currentItem() == nullptr)
|
||||
{
|
||||
ui->eventInfoGroup->hide();
|
||||
ui->removeVisitInfo->setEnabled(false);
|
||||
return;
|
||||
}
|
||||
|
||||
ui->eventInfoGroup->show();
|
||||
ui->removeVisitInfo->setEnabled(true);
|
||||
}
|
||||
|
||||
void RewardsWidget::on_visitInfoList_currentItemChanged(QListWidgetItem * current, QListWidgetItem * previous)
|
||||
|
@ -36,6 +36,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="removeVisitInfo">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Remove</string>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user