added missing confirmation dialogue for remote folder deletion
This commit is contained in:
parent
915e809eb5
commit
bc595bbab2
1 changed files with 2 additions and 0 deletions
|
@ -306,6 +306,8 @@ void TabDeckStorage::actDeleteRemoteDeck()
|
||||||
QString path = dir->getPath();
|
QString path = dir->getPath();
|
||||||
if (path.isEmpty())
|
if (path.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
if (QMessageBox::warning(this, tr("Delete remote folder"), tr("Are you sure you want to delete \"%1\"?").arg(path), QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes)
|
||||||
|
return;
|
||||||
Command_DeckDelDir cmd;
|
Command_DeckDelDir cmd;
|
||||||
cmd.set_path(path.toStdString());
|
cmd.set_path(path.toStdString());
|
||||||
pend = client->prepareSessionCommand(cmd);
|
pend = client->prepareSessionCommand(cmd);
|
||||||
|
|
Loading…
Reference in a new issue