From bc910798da9ec7db33fbaff294882505b5551836 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 8 Mar 2017 01:01:17 +0200 Subject: [PATCH] Indicate bitness in stackstrace and about dialog. Closes #6172. --- src/app/stacktrace_win_dlg.h | 6 +++++- src/gui/about_imp.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/stacktrace_win_dlg.h b/src/app/stacktrace_win_dlg.h index 62d8da7fc..e9e7ff307 100644 --- a/src/app/stacktrace_win_dlg.h +++ b/src/app/stacktrace_win_dlg.h @@ -60,7 +60,11 @@ public: "

" "


" "

" - "qBittorrent version: " QBT_VERSION "
" +#if defined(__x86_64__) || defined(_M_X64) + "qBittorrent version: " QBT_VERSION " (64-bit)
" +#else + "qBittorrent version: " QBT_VERSION " (32-bit)
" +#endif "Libtorrent version: %1
" "Qt version: " QT_VERSION_STR "
" "Boost version: %2
" diff --git a/src/gui/about_imp.h b/src/gui/about_imp.h index 310aa72bb..2ff663edc 100644 --- a/src/gui/about_imp.h +++ b/src/gui/about_imp.h @@ -47,7 +47,11 @@ public: setAttribute(Qt::WA_DeleteOnClose); // Title - lb_name->setText("

qBittorrent " QBT_VERSION "

"); +#if defined(__x86_64__) || defined(_M_X64) + lb_name->setText("

qBittorrent " QBT_VERSION " (64-bit)

"); +#else + lb_name->setText("

qBittorrent " QBT_VERSION " (32-bit)

"); +#endif // About QString aboutText = QString(