diff options
author | saturneric <[email protected]> | 2024-01-23 12:27:30 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-23 12:27:30 +0000 |
commit | 079b613d373c9ea317d49941728da146dad32356 (patch) | |
tree | a37a567cf27368f445b0365008e96c7a9ae958f1 /src/ui/widgets/TextEdit.cpp | |
parent | fix: solve issues at i18n support (diff) | |
download | GpgFrontend-079b613d373c9ea317d49941728da146dad32356.tar.gz GpgFrontend-079b613d373c9ea317d49941728da146dad32356.zip |
feat: add a setting to enable gpgme debug log
Diffstat (limited to 'src/ui/widgets/TextEdit.cpp')
-rw-r--r-- | src/ui/widgets/TextEdit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp index 59890465..3a56b90d 100644 --- a/src/ui/widgets/TextEdit.cpp +++ b/src/ui/widgets/TextEdit.cpp @@ -120,8 +120,7 @@ void TextEdit::SlotNewFileTab() { void TextEdit::SlotOpenFile(const QString& path) { QFile file(path); - GF_UI_LOG_DEBUG("main window editor is opening file at path: {}", - path.toStdString()); + GF_UI_LOG_DEBUG("main window editor is opening file at path: {}", path); auto result = file.open(QIODevice::ReadOnly | QIODevice::Text); if (result) { auto* page = new PlainTextEditorPage(path); @@ -511,7 +510,7 @@ QHash<int, QString> TextEdit::UnsavedDocuments() const { if (ep != nullptr && ep->ReadDone() && ep->GetTextPage()->document()->isModified()) { QString doc_name = tab_widget_->tabText(i); - GF_UI_LOG_DEBUG("unsaved: {}", doc_name.toStdString()); + GF_UI_LOG_DEBUG("unsaved: {}", doc_name); // remove * before name of modified doc doc_name.remove(0, 2); |