Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-05-08 20:15:26 +0300
committerGitHub <noreply@github.com>2022-05-08 20:15:26 +0300
commit7394dc6093b81208169afa125408eca54d6db257 (patch)
tree8a471562eb2352ff36b01fd23c773bc156819d8a /src
parentd8928227caa2926b00cb4bf3a2d0e82596fff295 (diff)
parent8afeaf693834988656a8bd8f95cfb0e5e87a386d (diff)
Merge PR #5609: BUILD(client): Fix various issues
See individual commits for details Fixes #5606
Diffstat (limited to 'src')
-rw-r--r--src/mumble/Markdown.cpp2
-rw-r--r--src/mumble/PluginManifest.cpp1
-rw-r--r--src/mumble/QtWidgetUtils.cpp2
-rw-r--r--src/mumble/QtWidgetUtils.h2
-rw-r--r--src/mumble/SearchDialog.cpp6
5 files changed, 12 insertions, 1 deletions
diff --git a/src/mumble/Markdown.cpp b/src/mumble/Markdown.cpp
index fbd88f678..cd041787e 100644
--- a/src/mumble/Markdown.cpp
+++ b/src/mumble/Markdown.cpp
@@ -343,7 +343,7 @@ void escapeCharacter(QString &str, int &offset) {
tmp = tmp.toHtmlEscaped();
- if (tmp.size() == 1 && tmp == str[offset]) {
+ if (tmp.size() == 1 && tmp[0] == str[offset]) {
// Nothing to escape
return;
}
diff --git a/src/mumble/PluginManifest.cpp b/src/mumble/PluginManifest.cpp
index fa69c0c3e..40acb29d3 100644
--- a/src/mumble/PluginManifest.cpp
+++ b/src/mumble/PluginManifest.cpp
@@ -9,6 +9,7 @@
#include <Poco/DOM/DOMParser.h>
#include <Poco/DOM/Document.h>
+#include <Poco/DOM/Element.h>
#include <Poco/DOM/NodeList.h>
#include <Poco/SAX/InputSource.h>
#include <Poco/SAX/SAXException.h>
diff --git a/src/mumble/QtWidgetUtils.cpp b/src/mumble/QtWidgetUtils.cpp
index c329d832f..32ab98edb 100644
--- a/src/mumble/QtWidgetUtils.cpp
+++ b/src/mumble/QtWidgetUtils.cpp
@@ -11,6 +11,8 @@
#include <QTextCursor>
#include <QTextDocument>
+#include <cstdint>
+
namespace Mumble {
namespace QtUtils {
QScreen *screenAt(QPoint point) {
diff --git a/src/mumble/QtWidgetUtils.h b/src/mumble/QtWidgetUtils.h
index 4702c94a0..3972131e3 100644
--- a/src/mumble/QtWidgetUtils.h
+++ b/src/mumble/QtWidgetUtils.h
@@ -6,6 +6,8 @@
#ifndef MUMBLE_MUMBLE_QTWIDGETUTILS_H_
#define MUMBLE_MUMBLE_QTWIDGETUTILS_H_
+#include <cstdint>
+
#include <QPoint>
class QScreen;
diff --git a/src/mumble/SearchDialog.cpp b/src/mumble/SearchDialog.cpp
index dfc228b2c..009aa8829 100644
--- a/src/mumble/SearchDialog.cpp
+++ b/src/mumble/SearchDialog.cpp
@@ -489,7 +489,13 @@ void SearchDialog::keyPressEvent(QKeyEvent *event) {
return;
}
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
if (event->matches(QKeySequence::Cancel)) {
+#else
+ // Before Qt 5.6, no standard key for the cancel operation was defined. Thus, in these cases, we hardcode it to be
+ // Escape
+ if (event->key() == Qt::Key_Escape) {
+#endif
event->accept();
// Mimic behavior of dialogs (close on Esc)
close();