skim: 0.15.7 -> 0.16.0 (#376410)
[NixPkgs.git] / pkgs / by-name / qg / qgroundcontrol / disable-bad-message.patch
blob31ed17c43bc604c2d9d23a937c5438ace6ab4e4d
1 diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc
2 index 7992ed00d..a9e0f0ba7 100644
3 --- a/src/QGCApplication.cc
4 +++ b/src/QGCApplication.cc
5 @@ -207,24 +207,6 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
6 "sudo apt-get remove modemmanager</pre>").arg(qgcApp()->applicationName())));
7 return;
9 - // Determine if we have the correct permissions to access USB serial devices
10 - QFile permFile("/etc/group");
11 - if(permFile.open(QIODevice::ReadOnly)) {
12 - while(!permFile.atEnd()) {
13 - QString line = permFile.readLine();
14 - if (line.contains("dialout") && !line.contains(getenv("USER"))) {
15 - permFile.close();
16 - _exitWithError(QString(
17 - tr("The current user does not have the correct permissions to access serial devices. "
18 - "You should also remove modemmanager since it also interferes.<br/><br/>"
19 - "If you are using Ubuntu, execute the following commands to fix these issues:<br/>"
20 - "<pre>sudo usermod -a -G dialout $USER<br/>"
21 - "sudo apt-get remove modemmanager</pre>")));
22 - return;
23 - }
24 - }
25 - permFile.close();
26 - }
28 // Always set style to default, this way QT_QUICK_CONTROLS_STYLE environment variable doesn't cause random changes in ui
29 QQuickStyle::setStyle("Default");