Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / goldendict / 0001-dont-check-for-updates.patch
blob31c7a6382292c19a2a19695d5adcb3883cc304a5
1 diff --git i/config.cc w/config.cc
2 index 04b63f5..7a453d9 100644
3 --- i/config.cc
4 +++ w/config.cc
5 @@ -182,7 +182,7 @@ Preferences::Preferences():
6 pronounceOnLoadPopup( false ),
7 useInternalPlayer( InternalPlayerBackend::anyAvailable() ),
8 internalPlayerBackend( InternalPlayerBackend::defaultBackend() ),
9 - checkForNewReleases( true ),
10 + checkForNewReleases( false ),
11 disallowContentFromOtherSites( false ),
12 enableWebPlugins( false ),
13 hideGoldenDictHeader( false ),
14 @@ -867,8 +867,8 @@ Class load() THROW_SPEC( exError )
15 c.preferences.proxyServer.systemProxyPassword = proxy.namedItem( "systemProxyPassword" ).toElement().text();
18 - if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
19 - c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );
20 + //if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
21 + // c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );
23 if ( !preferences.namedItem( "disallowContentFromOtherSites" ).isNull() )
24 c.preferences.disallowContentFromOtherSites = ( preferences.namedItem( "disallowContentFromOtherSites" ).toElement().text() == "1" );
25 @@ -1819,9 +1819,9 @@ void save( Class const & c ) THROW_SPEC( exError )
26 proxy.appendChild( opt );
29 - opt = dd.createElement( "checkForNewReleases" );
30 - opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
31 - preferences.appendChild( opt );
32 + //opt = dd.createElement( "checkForNewReleases" );
33 + //opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
34 + //preferences.appendChild( opt );
36 opt = dd.createElement( "disallowContentFromOtherSites" );
37 opt.appendChild( dd.createTextNode( c.preferences.disallowContentFromOtherSites ? "1" : "0" ) );
38 diff --git i/preferences.cc w/preferences.cc
39 index 72c3147..7e48f00 100644
40 --- i/preferences.cc
41 +++ w/preferences.cc
42 @@ -314,6 +314,7 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
43 this, SLOT( customProxyToggled( bool ) ) );
45 ui.checkForNewReleases->setChecked( p.checkForNewReleases );
46 + ui.checkForNewReleases->setEnabled( false );
47 ui.disallowContentFromOtherSites->setChecked( p.disallowContentFromOtherSites );
48 ui.enableWebPlugins->setChecked( p.enableWebPlugins );
49 ui.hideGoldenDictHeader->setChecked( p.hideGoldenDictHeader );