summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-16 05:38:32 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:33:37 -0400
commit54d98e291701f2187174a67c186f1ea762c6b959 (patch)
tree5ef78396bf9bc364146ae7bd4dd9a9fee2529504 /src/profile.cpp
parentbc9f286bce224743d244e540d55f26b55affbd4a (diff)
removed unused or redundant stuff in error_report.h
renamed log() to vlog() for now extracted console creation to Console class rewrote LogBuffer to work with logging from uibase, renamed to LogModel added fmt dependency
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index ef387027..01906903 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -287,8 +287,11 @@ void Profile::createTweakedIniFile()
}
if (error) {
- reportError(tr("failed to create tweaked ini: %1").arg(getCurrentErrorString().c_str()));
+ const auto e = ::GetLastError();
+ reportError(tr("failed to create tweaked ini: %1")
+ .arg(formatSystemMessageQ(e)));
}
+
qDebug("%s saved", qUtf8Printable(QDir::toNativeSeparators(tweakedIni)));
}