Skip to content

Commit 765d1a9

Browse files
committed
reenable tips for new minor releases
1 parent ed581ae commit 765d1a9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
823823
mLastComposerId = 0;
824824

825825
// Show a nice tip of the day
826-
if ( settings.value( "/qgis/showTips", 1 ).toBool() )
826+
if ( settings.value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() )
827827
{
828828
mSplash->hide();
829829
QgsTipGui myTip;

src/app/qgsoptions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
550550
mLegendLayersBoldChkBx->setChecked( settings.value( "/qgis/legendLayersBold", true ).toBool() );
551551
mLegendGroupsBoldChkBx->setChecked( settings.value( "/qgis/legendGroupsBold", false ).toBool() );
552552
cbxHideSplash->setChecked( settings.value( "/qgis/hideSplash", false ).toBool() );
553-
cbxShowTips->setChecked( settings.value( "/qgis/showTips", true ).toBool() );
553+
cbxShowTips->setChecked( settings.value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() );
554554
cbxAttributeTableDocked->setChecked( settings.value( "/qgis/dockAttributeTable", false ).toBool() );
555555
cbxSnappingOptionsDocked->setChecked( settings.value( "/qgis/dockSnapping", false ).toBool() );
556556
cbxAddPostgisDC->setChecked( settings.value( "/qgis/addPostgisDC", false ).toBool() );
@@ -1046,7 +1046,7 @@ void QgsOptions::saveOptions()
10461046
bool legendGroupsBold = settings.value( "/qgis/legendGroupsBold", false ).toBool();
10471047
settings.setValue( "/qgis/legendGroupsBold", mLegendGroupsBoldChkBx->isChecked() );
10481048
settings.setValue( "/qgis/hideSplash", cbxHideSplash->isChecked() );
1049-
settings.setValue( "/qgis/showTips", cbxShowTips->isChecked() );
1049+
settings.setValue( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), cbxShowTips->isChecked() );
10501050
settings.setValue( "/qgis/dockAttributeTable", cbxAttributeTableDocked->isChecked() );
10511051
settings.setValue( "/qgis/attributeTableBehaviour", cmbAttrTableBehaviour->itemData( cmbAttrTableBehaviour->currentIndex() ) );
10521052
settings.setValue( "/qgis/attributeTableRowCache", spinBoxAttrTableRowCache->value() );

src/app/qgstipgui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void QgsTipGui::on_cbxDisableTips_toggled( bool theFlag )
8080
QSettings settings;
8181
//note the ! below as when the cbx is checked (true) we want to
8282
//change the setting to false
83-
settings.setValue( "/qgis/showTips", !theFlag );
83+
settings.setValue( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), !theFlag );
8484
hide();
8585
}
8686

0 commit comments

Comments
 (0)