Ask for confirmation before deleting a stream from the list

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 11 months ago
parent dbdd2a4e3c
commit ffff8a9041
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -189,9 +189,17 @@ void KStreamRipper::editStreamButtonClicked()
void KStreamRipper::deleteStreamButtonClicked()
{
ProcessListViewItem * ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem();
ProcessListViewItem *procItem = (ProcessListViewItem*)m_streamsListView->currentItem();
if (procItem)
{
int res = KMessageBox::questionYesNo(this, i18n("Delete the stream '%1'?").arg(procItem->text(0)),
i18n("Delete stream"));
if (res == KMessageBox::Yes)
{
stopRipButtonClicked();
delete ProcItem;
delete procItem;
}
}
}
void KStreamRipper::tuneInButtonClicked()

Loading…
Cancel
Save