mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't delete "" (#5135)
This commit is contained in:
parent
038ce3dcec
commit
4865269a73
1 changed files with 3 additions and 0 deletions
|
|
@ -146,6 +146,9 @@ void TabReplays::actOpenLocalReplay()
|
|||
void TabReplays::actDeleteLocalReplay()
|
||||
{
|
||||
QModelIndex curLeft = localDirView->selectionModel()->currentIndex();
|
||||
if (!curLeft.isValid())
|
||||
return;
|
||||
|
||||
if (QMessageBox::warning(this, tr("Delete local file"),
|
||||
tr("Are you sure you want to delete \"%1\"?").arg(localDirModel->fileName(curLeft)),
|
||||
QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue