diff --git a/dist/mac/Info.plist b/dist/mac/Info.plist
index f5262979d..4ae208369 100644
--- a/dist/mac/Info.plist
+++ b/dist/mac/Info.plist
@@ -55,7 +55,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 5.1.1
+ 5.1.2
CFBundleExecutable
${EXECUTABLE_NAME}
CFBundleIdentifier
diff --git a/dist/unix/org.qbittorrent.qBittorrent.metainfo.xml b/dist/unix/org.qbittorrent.qBittorrent.metainfo.xml
index bd45508e3..b3ec5ccb7 100644
--- a/dist/unix/org.qbittorrent.qBittorrent.metainfo.xml
+++ b/dist/unix/org.qbittorrent.qBittorrent.metainfo.xml
@@ -62,6 +62,6 @@
https://github.com/qbittorrent/qBittorrent/blob/master/CONTRIBUTING.md
-
+
diff --git a/dist/windows/config.nsh b/dist/windows/config.nsh
index ca341c640..a262a0c63 100644
--- a/dist/windows/config.nsh
+++ b/dist/windows/config.nsh
@@ -14,7 +14,7 @@
; 4.5.1.3 -> good
; 4.5.1.3.2 -> bad
; 4.5.0beta -> bad
-!define /ifndef QBT_VERSION "5.1.1"
+!define /ifndef QBT_VERSION "5.1.2"
; Option that controls the installer's window name
; If set, its value will be used like this:
diff --git a/src/base/version.h.in b/src/base/version.h.in
index 594cb7964..9648af7ad 100644
--- a/src/base/version.h.in
+++ b/src/base/version.h.in
@@ -30,7 +30,7 @@
#define QBT_VERSION_MAJOR 5
#define QBT_VERSION_MINOR 1
-#define QBT_VERSION_BUGFIX 1
+#define QBT_VERSION_BUGFIX 2
#define QBT_VERSION_BUILD 0
#define QBT_VERSION_STATUS "" // Should be empty for stable releases!