Commit c020ce51 authored by Nate Graham's avatar Nate Graham
Browse files

Use a more appropriate and user-friendly type of messagebox for device removal

parent a3074874
...@@ -211,8 +211,11 @@ void KCMBlueDevilDevices::removeDevice() ...@@ -211,8 +211,11 @@ void KCMBlueDevilDevices::removeDevice()
return; return;
} }
if (KMessageBox::questionYesNo(this, i18n("Are you sure that you want to remove device \"%1\" from the list of known devices?", device->friendlyName()), if (KMessageBox::warningContinueCancel(this, i18n("Are you sure that you want to remove device \"%1\" from the list of known devices?", device->friendlyName()),
i18nc("Title of window that asks for confirmation when removing a device", "Device removal")) == KMessageBox::Yes) { i18nc("Title of window that asks for confirmation when removing a device", "Device removal"),
KStandardGuiItem::remove(),
KStandardGuiItem::cancel()
) == KMessageBox::Continue) {
device->adapter()->removeDevice(device); device->adapter()->removeDevice(device);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment