Skip to content

Commit cb8d336

Browse files
committed
reenable tips for new minor releases
(cherry picked from commit 765d1a9)
1 parent 19b79d8 commit cb8d336

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
@@ -800,7 +800,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
800800
mLastComposerId = 0;
801801

802802
// Show a nice tip of the day
803-
if ( settings.value( "/qgis/showTips", 1 ).toBool() )
803+
if ( settings.value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() )
804804
{
805805
mSplash->hide();
806806
QgsTipGui myTip;

src/app/qgsoptions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
575575
mLegendLayersBoldChkBx->setChecked( settings.value( "/qgis/legendLayersBold", true ).toBool() );
576576
mLegendGroupsBoldChkBx->setChecked( settings.value( "/qgis/legendGroupsBold", false ).toBool() );
577577
cbxHideSplash->setChecked( settings.value( "/qgis/hideSplash", false ).toBool() );
578-
cbxShowTips->setChecked( settings.value( "/qgis/showTips", true ).toBool() );
578+
cbxShowTips->setChecked( settings.value( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), true ).toBool() );
579579
cbxAttributeTableDocked->setChecked( settings.value( "/qgis/dockAttributeTable", false ).toBool() );
580580
cbxSnappingOptionsDocked->setChecked( settings.value( "/qgis/dockSnapping", false ).toBool() );
581581
cbxAddPostgisDC->setChecked( settings.value( "/qgis/addPostgisDC", false ).toBool() );
@@ -1082,7 +1082,7 @@ void QgsOptions::saveOptions()
10821082
bool legendGroupsBold = settings.value( "/qgis/legendGroupsBold", false ).toBool();
10831083
settings.setValue( "/qgis/legendGroupsBold", mLegendGroupsBoldChkBx->isChecked() );
10841084
settings.setValue( "/qgis/hideSplash", cbxHideSplash->isChecked() );
1085-
settings.setValue( "/qgis/showTips", cbxShowTips->isChecked() );
1085+
settings.setValue( QString( "/qgis/showTips%1" ).arg( QGis::QGIS_VERSION_INT / 100 ), cbxShowTips->isChecked() );
10861086
settings.setValue( "/qgis/dockAttributeTable", cbxAttributeTableDocked->isChecked() );
10871087
settings.setValue( "/qgis/attributeTableBehaviour", cmbAttrTableBehaviour->itemData( cmbAttrTableBehaviour->currentIndex() ) );
10881088
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)