1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[ClearPrivateData] Ask user before actually deleting data.

This commit is contained in:
nowrep 2013-12-29 11:59:30 +01:00
parent debd9aa5e0
commit 99a4559973
2 changed files with 8 additions and 16 deletions

View File

@ -104,6 +104,14 @@ void ClearPrivateData::closeEvent(QCloseEvent* e)
void ClearPrivateData::dialogAccepted()
{
QMessageBox::StandardButton b = QMessageBox::question(this, tr("Clear Private Data"),
tr("Are you sure to clear selected private data?"),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
if (b != QMessageBox::Yes) {
return;
}
QApplication::setOverrideCursor(Qt::WaitCursor);
if (ui->history->isChecked()) {

View File

@ -190,22 +190,6 @@
<include location="../data/icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ClearPrivateData</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>