mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
new setting to allow disabling the version check at startup (refs #14022)
This commit is contained in:
parent
5d989abd6f
commit
af88924ad9
@ -590,6 +590,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
|
||||
mLegendGroupsBoldChkBx->setChecked( mSettings->value( "/qgis/legendGroupsBold", false ).toBool() );
|
||||
cbxHideSplash->setChecked( mSettings->value( "/qgis/hideSplash", false ).toBool() );
|
||||
cbxShowTips->setChecked( mSettings->value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() );
|
||||
cbxCheckVersion->setChecked( mSettings->value( "/qgis/checkVersion", true ).toBool() );
|
||||
cbxAttributeTableDocked->setChecked( mSettings->value( "/qgis/dockAttributeTable", false ).toBool() );
|
||||
cbxSnappingOptionsDocked->setChecked( mSettings->value( "/qgis/dockSnapping", false ).toBool() );
|
||||
cbxAddPostgisDC->setChecked( mSettings->value( "/qgis/addPostgisDC", false ).toBool() );
|
||||
@ -1131,6 +1132,7 @@ void QgsOptions::saveOptions()
|
||||
mSettings->setValue( "/qgis/legendGroupsBold", mLegendGroupsBoldChkBx->isChecked() );
|
||||
mSettings->setValue( "/qgis/hideSplash", cbxHideSplash->isChecked() );
|
||||
mSettings->setValue( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), cbxShowTips->isChecked() );
|
||||
mSettings->setValue( "/qgis/checkVersion", cbxCheckVersion->isChecked() );
|
||||
mSettings->setValue( "/qgis/dockAttributeTable", cbxAttributeTableDocked->isChecked() );
|
||||
mSettings->setValue( "/qgis/attributeTableBehaviour", cmbAttrTableBehaviour->itemData( cmbAttrTableBehaviour->currentIndex() ) );
|
||||
mSettings->setValue( "/qgis/attributeTableRowCache", spinBoxAttrTableRowCache->value() );
|
||||
|
@ -27,6 +27,8 @@
|
||||
QgsWelcomePage::QgsWelcomePage( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
{
|
||||
QSettings settings;
|
||||
|
||||
QVBoxLayout* mainLayout = new QVBoxLayout;
|
||||
mainLayout->setMargin( 0 );
|
||||
setLayout( mainLayout );
|
||||
@ -58,7 +60,7 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
|
||||
mVersionInformation->setVisible( false );
|
||||
|
||||
mVersionInfo = new QgsVersionInfo();
|
||||
if ( !QgsApplication::isRunningFromBuildDir() )
|
||||
if ( !QgsApplication::isRunningFromBuildDir() && settings.value( "/qgis/checkVersion", true ).toBool() )
|
||||
{
|
||||
connect( mVersionInfo, SIGNAL( versionInfoAvailable() ), this, SLOT( versionInfoReceived() ) );
|
||||
mVersionInfo->checkVersion();
|
||||
|
@ -619,11 +619,37 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbxShowTips">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show tips at start up</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>12</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbxCheckVersion">
|
||||
<property name="text">
|
||||
<string>Check QGIS version at startup</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user