summary refs log tree commit diff
path: root/src/Logging.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 21:09:29 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 21:09:29 +0200
commitba3d405513d04ce7733df85b1fb93c53f13e633a (patch)
treeb8b78a04aaed8d5c6fbc323c48839265d4d2dce7 /src/Logging.cpp
parentDisable opening images, when they are not loaded (diff)
downloadnheko-ba3d405513d04ce7733df85b1fb93c53f13e633a.tar.xz
Fix Binding restoreMode warning spamming logs
fixes #170
Diffstat (limited to '')
-rw-r--r--src/Logging.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp
index 4ea6bae2..6633097c 100644
--- a/src/Logging.cpp
+++ b/src/Logging.cpp
@@ -28,10 +28,8 @@ qmlMessageHandler(QtMsgType type, const QMessageLogContext &context, const QStri
         if (
           // Surpress binding wrning for now, as we can't set restore mode to keep compat with
           // qt 5.10
-          msg.endsWith(
-            "QML Binding: Not restoring previous value because restoreMode has not been set.This "
-            "behavior is deprecated.In Qt < 6.0 the default is Binding.RestoreBinding.In Qt >= "
-            "6.0 the default is Binding.RestoreBindingOrValue.") ||
+          msg.contains(
+            "QML Binding: Not restoring previous value because restoreMode has not been set.") ||
           // The default style has the point size set. If you use pixel size anywhere, you get
           // that warning, which is useless, since sometimes you need the pixel size to match the
           // text to the size of the outer element for example. This is done in the avatar and