aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/popupeditor/PopupEditorWindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2023-10-10 17:58:14 +0200
committerGravatar ctrlaltca2023-10-18 10:26:35 +0200
commit9052018b53ece6c073b57c89665ae693a3f0fb97 (patch)
tree24dd1cba8974439f646a242bc0cb228076fa38b2 /src/modules/popupeditor/PopupEditorWindow.cpp
parentAddress feedback for XmlFunctions.cpp (diff)
downloadKVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.gz
KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.bz2
KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.zip
Migrate almost all QMessagebox to qt6-friendly version.
Diffstat (limited to 'src/modules/popupeditor/PopupEditorWindow.cpp')
-rw-r--r--src/modules/popupeditor/PopupEditorWindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/popupeditor/PopupEditorWindow.cpp b/src/modules/popupeditor/PopupEditorWindow.cpp
index 62b3bd855..2edc4620b 100644
--- a/src/modules/popupeditor/PopupEditorWindow.cpp
+++ b/src/modules/popupeditor/PopupEditorWindow.cpp
@@ -1148,9 +1148,8 @@ void PopupEditorWidget::popupRefresh(const QString & szName)
if(ch == m_pLastEditedItem)
{
if(
- QMessageBox::warning(nullptr, __tr2qs_ctx("Confirm Overwriting Current - KVIrc", "editor"),
- __tr2qs_ctx("An external script has changed the popup you are currently editing. Do you want to accept the external changes?", "editor"),
- QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape) != QMessageBox::Yes)
+ QMessageBox::question(nullptr, __tr2qs_ctx("Confirm Overwriting Current - KVIrc", "editor"),
+ __tr2qs_ctx("An external script has changed the popup you are currently editing. Do you want to accept the external changes?", "editor")) != QMessageBox::Yes)
return;
}
KviKvsPopupMenu * pCopy = new KviKvsPopupMenu(szName);
@@ -1225,7 +1224,7 @@ void PopupEditorWidget::exportCurrentPopup()
if(!KviFileUtils::writeFile(szFile, szOut))
{
- QMessageBox::warning(this, __tr2qs_ctx("Writing to File Failed - KVIrc", "editor"), __tr2qs_ctx("Unable to write to the popups file.", "editor"), __tr2qs_ctx("OK", "editor"));
+ QMessageBox::warning(this, __tr2qs_ctx("Writing to File Failed - KVIrc", "editor"), __tr2qs_ctx("Unable to write to the popups file.", "editor"));
}
}
@@ -1275,7 +1274,7 @@ void PopupEditorWidget::exportPopups(bool bSelectedOnly)
if(!KviFileUtils::writeFile(szFile, out))
{
- QMessageBox::warning(this, __tr2qs_ctx("Writing to File Failed - KVIrc", "editor"), __tr2qs_ctx("Unable to write to the popups file.", "editor"), __tr2qs_ctx("OK", "editor"));
+ QMessageBox::warning(this, __tr2qs_ctx("Writing to File Failed - KVIrc", "editor"), __tr2qs_ctx("Unable to write to the popups file.", "editor"));
}
}