aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 09:10:53 +0000
committerSaturneric <[email protected]>2022-01-23 09:10:53 +0000
commit0dd16d72d75e2068b8365a49ef2696a4744575dd (patch)
treea463727ba5a5ee4d5afcfb0eaa4d8e6e48b7c930 /src/ui/widgets/TextEdit.cpp
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.tar.gz
GpgFrontend-0dd16d72d75e2068b8365a49ef2696a4744575dd.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up ui.
Diffstat (limited to 'src/ui/widgets/TextEdit.cpp')
-rw-r--r--src/ui/widgets/TextEdit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp
index 3ac6e138..a0e16081 100644
--- a/src/ui/widgets/TextEdit.cpp
+++ b/src/ui/widgets/TextEdit.cpp
@@ -334,14 +334,14 @@ bool TextEdit::MaybeSaveAnyTab() {
// if result is QDialog::Rejected, discard or cancel was clicked
if (result == QDialog::Rejected) {
// return true, if discard is clicked, so app can be closed
- if (dialog->isDiscarded()) {
+ if (dialog->IsDiscarded()) {
return true;
} else {
return false;
}
} else {
bool all_saved = true;
- QList<int> tabIdsToSave = dialog->getTabIdsToSave();
+ QList<int> tabIdsToSave = dialog->GetTabIdsToSave();
for (const auto& tabId : tabIdsToSave) {
tab_widget_->setCurrentIndex(tabId);