Package: xfe / 1.43.1-1

06_no-mount-warning.patch Patch series | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Package:     xfe
Subject:     no mount warning
Author:      Bastian Kleineidam <calvin at debian.org>
Author:      Joachim Wiedorn <joodebian at joonet.de>
Bug-Debian:  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311018
Forwarded:   no
Last-Update: 2018-11-26

Deactivate mount warnings by default (Close: #311018).
This option can be actived by each user in his config.
---

diff -urN s02/src/DirList.cpp s06/src/DirList.cpp
--- s02/src/DirList.cpp	2018-05-16 14:05:24.000000000 +0200
+++ s06/src/DirList.cpp	2018-11-26 16:28:55.348707403 +0100
@@ -1473,7 +1473,7 @@
     struct stat    statbuf;
     FXString       mtstate;
 
-    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", true);
+    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", false);
 
     FXStringDict* tmpdict = new FXStringDict();
     FILE*         mtab = setmntent(MTAB_PATH, "r");
diff -urN s02/src/Preferences.cpp s06/src/Preferences.cpp
--- s02/src/Preferences.cpp	2018-05-17 10:08:36.000000000 +0200
+++ s06/src/Preferences.cpp	2018-11-26 16:28:55.348707403 +0100
@@ -355,7 +355,7 @@
     dnd->setCheck(confirm_dnd);
 
 #if defined(linux)
-    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", true);
+    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", false);
     FXbool mount_messages = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_messages", true);
     mount->setCheck(mount_warn);
     show_mount->setCheck(mount_messages);
diff -urN s02/src/XFileExplorer.cpp s06/src/XFileExplorer.cpp
--- s02/src/XFileExplorer.cpp	2018-05-17 09:12:46.000000000 +0200
+++ s06/src/XFileExplorer.cpp	2018-11-26 16:28:55.348707403 +0100
@@ -2223,7 +2223,7 @@
 
 #if defined(linux)
     // Warning message if a mount point is down
-    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", true);
+    FXbool mount_warn = getApp()->reg().readUnsignedEntry("OPTIONS", "mount_warn", false);
     if (mount_warn)
     {
         int d;