Code

Fix a typo that causes a runtime error during the preferences test.
authortweenk <tweenk@users.sourceforge.net>
Sun, 7 Dec 2008 20:55:20 +0000 (20:55 +0000)
committertweenk <tweenk@users.sourceforge.net>
Sun, 7 Dec 2008 20:55:20 +0000 (20:55 +0000)
src/preferences-test.h

index 32218daf31f8e74740c92543794df05022b3a599..79f85210635da7184cec55ddf68eabe061432ac6 100644 (file)
@@ -78,7 +78,7 @@ public:
         prefs->addObserver(obs);
         prefs->setInt(path, 10);
         TS_ASSERT_EQUALS(obs.value, 10);
-        prefs->setInt("some/other/random/path", 10);
+        prefs->setInt("/some/other/random/path", 10);
         TS_ASSERT_EQUALS(obs.value, 10); // value should not change
         
         prefs->removeObserver(obs);