summaryrefslogtreecommitdiff
path: root/src/logbuffer.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-05-19 11:36:36 +0200
committerTannin <devnull@localhost>2013-05-19 11:36:36 +0200
commit0beb88760b4c258b89daf5791069dc885c0c27aa (patch)
treee86596d032ef4bc6ba7f2ce5823becd42adcbaca /src/logbuffer.cpp
parent4fbfc9aa54ed4499f54eb7b3cd942337f6b49e58 (diff)
- added hook for GetModuleFileName
- downloads are now identifiable by ID - fixed a bug with the multi-select categories list - fixed a problem with the nexus-login code breaking support for certain passwords - fixed a bug where detection of archive invalidation didn't work correctly - fixed ncc plugin trying to handle archives that aren't actually fomods
Diffstat (limited to 'src/logbuffer.cpp')
-rw-r--r--src/logbuffer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logbuffer.cpp b/src/logbuffer.cpp
index c891f4c5..d563f796 100644
--- a/src/logbuffer.cpp
+++ b/src/logbuffer.cpp
@@ -65,6 +65,8 @@ void LogBuffer::write() const
return;
}
+ DWORD lastError = ::GetLastError();
+
QFile file(m_OutFileName);
if (!file.open(QIODevice::WriteOnly)) {
reportError(tr("failed to write log to %1: %2").arg(m_OutFileName).arg(file.errorString()));
@@ -77,6 +79,7 @@ void LogBuffer::write() const
file.write(m_Messages.at(i % m_Messages.size()).toUtf8());
file.write("\r\n");
}
+ ::SetLastError(lastError);
}