summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-12-04 13:58:17 (GMT)
committerPino Toscano <pino@kde.org>2016-12-04 13:58:17 (GMT)
commita2c25dbc83f386a2be330c3db29fadbed8735dec (patch)
tree427fb01d326f0e8d17457975fdc1ff828d62f412
parent22f2a2b12371cc1ab50147254b68dfb54b72bb2f (diff)
Use KStandardGuiItem::overwrite()v16.12.1v16.12.0
... instead of creating the KGuiItem from scratch
-rw-r--r--game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.cpp b/game.cpp
index df38006..30bf6ca 100644
--- a/game.cpp
+++ b/game.cpp
@@ -585,7 +585,7 @@ void Game::saveGame (bool saveAs)
QString mes=i18n("The file %1 exists.\n"
"Do you want to overwrite it?", url.url());
result = KMessageBox::warningContinueCancel
- (m_view, mes, QString(), KGuiItem(i18n("Overwrite")));
+ (m_view, mes, QString(), KStandardGuiItem::overwrite());
if (result == KMessageBox::Cancel)
return;
}