diff --git a/src/lib/data/html/speeddial.html b/src/lib/data/html/speeddial.html index f9bd3cd87..a80fa7700 100644 --- a/src/lib/data/html/speeddial.html +++ b/src/lib/data/html/speeddial.html @@ -284,6 +284,7 @@ function setBoxTitle(id, title) { } function removeBox(id) { + if (confirm("%TITLE-WARN%")) var box = document.getElementById('quickdial').getElementsByTagName('div')[id]; if (box === undefined) return; diff --git a/src/lib/network/qupzillaschemehandler.cpp b/src/lib/network/qupzillaschemehandler.cpp index 72b3cf2ff..3c4d8109c 100644 --- a/src/lib/network/qupzillaschemehandler.cpp +++ b/src/lib/network/qupzillaschemehandler.cpp @@ -262,6 +262,7 @@ QString QupZillaSchemeReply::speeddialPage() dPage.replace("%TITLE-EDIT%", tr("Edit")); dPage.replace("%TITLE-REMOVE%", tr("Remove")); dPage.replace("%TITLE-RELOAD%", tr("Reload")); + dPage.replace("%TITLE-WARN%", tr("Are you sure to remove this speed dial?")); dPage.replace("%TITLE-FETCHTITLE%", tr("Load title from page")); dPage.replace("%JQUERY%", "qrc:html/jquery.js"); dPage.replace("%JQUERY-UI%", "qrc:html/jquery-ui.js");