mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[ClearPrivateData] Ask user before actually deleting data.
This commit is contained in:
parent
debd9aa5e0
commit
99a4559973
|
@ -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()) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user