summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/flameshot-once/flameshot/flameshot-15.history.patch
blob: 3626f5c72900c52fb557b9348a22aa8ea2b13d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/src/utils/history.cpp b/src/utils/history.cpp
index 877e6195..7e46f168 100644
--- a/src/utils/history.cpp
+++ b/src/utils/history.cpp
@@ -76,9 +76,9 @@ const HistoryFileName& History::unpackFileName(const QString& fileNamePacked)
     int nPathIndex = fileNamePacked.lastIndexOf("/");
     QStringList unpackedFileName;
     if (nPathIndex == -1) {
-        unpackedFileName = fileNamePacked.split("-");
+        unpackedFileName = fileNamePacked.split("|");
     } else {
-        unpackedFileName = fileNamePacked.mid(nPathIndex + 1).split("-");
+        unpackedFileName = fileNamePacked.mid(nPathIndex + 1).split("|");
     }
 
     switch (unpackedFileName.length()) {
@@ -109,9 +109,9 @@ const QString& History::packFileName(const QString& storageType,
     if (storageType.length() > 0) {
         if (deleteToken.length() > 0) {
             m_packedFileName =
-              storageType + "-" + deleteToken + "-" + m_packedFileName;
+              storageType + "|" + deleteToken + "|" + m_packedFileName;
         } else {
-            m_packedFileName = storageType + "-" + m_packedFileName;
+            m_packedFileName = storageType + "|" + m_packedFileName;
         }
     }
     return m_packedFileName;