aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-03-30 16:05:23 +0000
committerSaturneric <[email protected]>2023-03-30 16:05:23 +0000
commitd455958c8dec692973b53c9815dd5fafbaed1914 (patch)
tree9fdbc80619c10edc0bb59e43c1d334b5a844fbed
parentfeat: improve ci build config (diff)
downloadGpgFrontend-d455958c8dec692973b53c9815dd5fafbaed1914.tar.gz
GpgFrontend-d455958c8dec692973b53c9815dd5fafbaed1914.zip
fix: disable text cache in release mode
-rw-r--r--src/ui/widgets/TextEdit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp
index 4947e179..d22c091a 100644
--- a/src/ui/widgets/TextEdit.cpp
+++ b/src/ui/widgets/TextEdit.cpp
@@ -603,6 +603,7 @@ void TextEdit::slot_save_status_to_cache_for_revovery() {
text_page_data_modified_count_);
if (this->text_page_data_modified_count_++ % 3 != 0) return;
+#ifdef DEBUG
int tab_count = tab_widget_->count();
SPDLOG_DEBUG("current tabs count {}", tab_count);
@@ -635,6 +636,7 @@ void TextEdit::slot_save_status_to_cache_for_revovery() {
tab_title, raw_text.size());
unsaved_pages.push_back({i, tab_title, raw_text});
}
+#endif
}
} // namespace GpgFrontend::UI