Closed ghost closed 1 year ago
@Wirlaburla, I think that LibMimeApps has some sort of issue with unescaping \\
in Конфигуриране на устройствата за възпроизвеждане и запис на\\
.
@Wirlaburla, try this diff:
diff --git a/3rdparty/libmimeapps/ConfigReader.cpp b/3rdparty/libmimeapps/ConfigReader.cpp
index cbf624a1a..817b22159 100644
--- a/3rdparty/libmimeapps/ConfigReader.cpp
+++ b/3rdparty/libmimeapps/ConfigReader.cpp
@@ -132,6 +132,12 @@ std::string ConfigReader::unescape(const std::string &string)
if (string.at(i) == '\\')
{
++i;
+
+ if (i >= string.length())
+ {
+ break;
+ }
+
switch (string.at(i))
{
case 's':
@Emdek Seems it solved the issue. I can add, modify, and change settings in the Download preferences just fine now.
@Wirlaburla, thanks for testing.
OS: Linux Qt: 5.15.6 Distribution: Artix Linux 5.19.10-zen1-1-zen Otter: db537b4 and 44523b8 Arch: x86_64 glibc: 2.36-4
Selecting or attempting to add anything in the Download section under Preferences > Advanced terminates Otter with the following error:
This has been tested with the release (1.0.03) and the latest git, both with fresh configurations and clean caches. Backend does not make a difference in output or behavior. I have not attempted to test previous versions.
gdb Backtrace: