aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/sharedfileswindow/SharedFilesWindow.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/sharedfileswindow/SharedFilesWindow.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/sharedfileswindow/SharedFilesWindow.cpp')
-rw-r--r--src/modules/sharedfileswindow/SharedFilesWindow.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/sharedfileswindow/SharedFilesWindow.cpp b/src/modules/sharedfileswindow/SharedFilesWindow.cpp
index 5e200ab8c..af1e947d1 100644
--- a/src/modules/sharedfileswindow/SharedFilesWindow.cpp
+++ b/src/modules/sharedfileswindow/SharedFilesWindow.cpp
@@ -155,16 +155,14 @@ void SharedFileEditDialog::okClicked()
QMessageBox::warning(this, __tr2qs_ctx("Invalid Expiry Time - KVIrc", "sharedfileswindow"),
__tr2qs_ctx("The expiry date/time is in the past: please either remove the \"Expires at\""
"check mark or specify a expiry date/time in the future",
- "sharedfileswindow"),
- __tr2qs_ctx("OK", "sharedfileswindow"));
+ "sharedfileswindow"));
return;
}
if(szName.isEmpty())
{
QMessageBox::warning(this, __tr2qs_ctx("Invalid Share Name - KVIrc", "sharedfileswindow"),
- __tr2qs_ctx("The share name can't be empty, please correct it", "sharedfileswindow"),
- __tr2qs_ctx("OK", "sharedfileswindow"));
+ __tr2qs_ctx("The share name can't be empty, please correct it", "sharedfileswindow"));
return;
}
@@ -172,8 +170,7 @@ void SharedFileEditDialog::okClicked()
if(!(f.exists() && f.isFile() && f.isReadable()))
{
QMessageBox::warning(this, __tr2qs_ctx("Error Opening File - KVIrc", "sharedfileswindow"),
- __tr2qs_ctx("The file doesn't exist or it is not readable, please check the path", "sharedfileswindow"),
- __tr2qs_ctx("OK", "sharedfileswindow"));
+ __tr2qs_ctx("The file doesn't exist or it is not readable, please check the path", "sharedfileswindow"));
return;
}