diff options
| author | Tannin <devnull@localhost> | 2015-02-25 18:38:01 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-02-25 18:38:01 +0100 |
| commit | 6479f972dccaabb3afadb570583a4269e8a785e4 (patch) | |
| tree | b36ec1afc65e123b893215a2529bb20c25041adb /src/main.cpp | |
| parent | e01ab940b0d76bfec8d7037ee56938780a74dc5b (diff) | |
tons of code cleanup and minor fixes to harden the code (mostly suggestions from static code analysis)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index bc89375e..a61e3150 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -69,6 +69,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QSplashScreen>
#include <QDirIterator>
#include <QDesktopServices>
+#include <QLibraryInfo>
#include <ShellAPI.h>
#include <eh.h>
#include <windows_error.h>
@@ -146,7 +147,7 @@ bool bootstrap() bool isNxmLink(const QString &link)
{
- return link.left(6).toLower() == "nxm://";
+ return link.startsWith("nxm://", Qt::CaseInsensitive);
}
static LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *exceptionPtrs)
@@ -166,7 +167,6 @@ static LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *except if (dbgDLL) {
FuncMiniDumpWriteDump funcDump = (FuncMiniDumpWriteDump)::GetProcAddress(dbgDLL, "MiniDumpWriteDump");
if (funcDump) {
-
if (QMessageBox::question(nullptr, QObject::tr("Woops"),
QObject::tr("ModOrganizer has crashed! Should a diagnostic file be created? If you send me this file "
"(%1) to sherb@gmx.net, the bug is a lot more likely to be fixed. "
|
