From cd44094efafeb4eb069fcc1bdfdef736afc56fdb Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Mon, 25 Jan 2016 14:46:11 -0800 Subject: [PATCH] When user is asked about disk cache, allow them to say no. --- interface/src/ui/DiskCacheEditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/src/ui/DiskCacheEditor.cpp b/interface/src/ui/DiskCacheEditor.cpp index 62917007d3..d3a40e6439 100644 --- a/interface/src/ui/DiskCacheEditor.cpp +++ b/interface/src/ui/DiskCacheEditor.cpp @@ -138,9 +138,10 @@ void DiskCacheEditor::refresh() { void DiskCacheEditor::clear() { QMessageBox::StandardButton buttonClicked = OffscreenUi::question(_dialog, "Clearing disk cache", - "You are about to erase all the content of the disk cache," - "are you sure you want to do that?"); - if (buttonClicked == QMessageBox::Yes) { + "You are about to erase all the content of the disk cache, " + "are you sure you want to do that?", + QMessageBox::Ok | QMessageBox::Cancel); + if (buttonClicked == QMessageBox::Ok) { if (auto cache = NetworkAccessManager::getInstance().cache()) { qDebug() << "DiskCacheEditor::clear(): Clearing disk cache."; cache->clear();