summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <[email protected]>2015-09-26 06:56:43 +0200
committerDennis Nienhüser <[email protected]>2015-09-27 11:04:31 +0200
commitc9aa0f0f4a28a3bb9ac72fb543358b5145383e18 (patch)
tree8394a24939e5e239538c8c20652fed1dc45816b1
parentded6fd331229e2b212585eac46a9fd2e7c59c768 (diff)
Allow type conversions when changing a setting
-rw-r--r--src/lib/marble/RenderPlugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/marble/RenderPlugin.cpp b/src/lib/marble/RenderPlugin.cpp
index 99bc605..271fbcd 100644
--- a/src/lib/marble/RenderPlugin.cpp
+++ b/src/lib/marble/RenderPlugin.cpp
@@ -231,7 +231,7 @@ QStringList RenderPlugin::settingKeys() const
bool RenderPlugin::setSetting( const QString & key, const QVariant & value )
{
QHash< QString, QVariant> settings = this->settings();
- if( settings.contains( key ) && settings.value( key ).type() == value.type() )
+ if( settings.contains( key ) )
{
settings [ key ] = value;
setSettings( settings );