summarylogtreecommitdiffstats
path: root/bin.otrverwaltung3p.diff
diff options
context:
space:
mode:
authorgcurse2020-07-19 12:40:54 +0200
committergcurse2020-07-19 12:40:54 +0200
commit96843074cb06eef760d292da15c8611617b14e29 (patch)
treef0a2e0c9959e9112536ed4ecccb3d2e6705a9468 /bin.otrverwaltung3p.diff
parent0f3d48a886d8abf8eef5b9e3ca17ab74a9ed6160 (diff)
downloadaur-96843074cb06eef760d292da15c8611617b14e29.tar.gz
Adds a patch
Diffstat (limited to 'bin.otrverwaltung3p.diff')
-rw-r--r--bin.otrverwaltung3p.diff58
1 files changed, 58 insertions, 0 deletions
diff --git a/bin.otrverwaltung3p.diff b/bin.otrverwaltung3p.diff
new file mode 100644
index 000000000000..ffd4c582fce1
--- /dev/null
+++ b/bin.otrverwaltung3p.diff
@@ -0,0 +1,58 @@
+diff --git a/bin/otrverwaltung3p b/bin/otrverwaltung3p
+index 7da0c16..c003edb 100755
+--- a/bin/otrverwaltung3p
++++ b/bin/otrverwaltung3p
+@@ -32,7 +32,6 @@ from pathlib import Path
+
+ try:
+ from gi import require_version
+-
+ require_version("Gtk", "3.0")
+ from gi.repository import Gtk, Gdk
+ except Exception as e:
+@@ -473,6 +472,9 @@ class App:
+ def __section_otrkey(self):
+ fpath = self.config.get("general", "folder_new_otrkeys")
+ files = []
++ if fpath == "":
++ return files
++
+ if Path(fpath).is_dir():
+ files += [
+ join(fpath, file_)
+@@ -484,6 +486,8 @@ class App:
+ def __section_video_uncut(self):
+ fpath = self.config.get("general", "folder_uncut_avis")
+ files = []
++ if fpath == "":
++ return files
+ if Path(fpath).is_dir():
+ files += [
+ join(fpath, file_)
+@@ -495,6 +499,8 @@ class App:
+ def __section_video_cut(self):
+ fpath = self.config.get("general", "folder_cut_avis")
+ files = []
++ if fpath == "":
++ return files
+ if Path(fpath).is_dir():
+ for file_ in os.listdir(fpath):
+ if not self.regex_uncut_video.match(file_):
+@@ -512,6 +518,8 @@ class App:
+ def __section_trash_avi(self):
+ fpath = self.config.get("general", "folder_trash_avis")
+ files = []
++ if fpath == "":
++ return files
+ if Path(fpath).is_dir():
+ files += [
+ join(fpath, file_)
+@@ -523,6 +531,8 @@ class App:
+ def __section_trash_otrkey(self):
+ fpath = self.config.get("general", "folder_trash_otrkeys")
+ files = []
++ if fpath == "":
++ return files
+ if Path(fpath).is_dir():
+ files += [
+ join(fpath, file_)