]> sigrok.org Git - pulseview.git/commitdiff
Fix #888 by incrementing i only once per iteration
authorSoeren Apel <redacted>
Fri, 23 Jun 2017 20:14:44 +0000 (22:14 +0200)
committerUwe Hermann <redacted>
Wed, 5 Jul 2017 22:37:08 +0000 (00:37 +0200)
pv/session.cpp

index 732f4a8cbf55b69c7befe816cba3921f23fb80ec..b99f0cf73827b56b3f9c641dfa22e94dadef01f7 100644 (file)
@@ -316,7 +316,7 @@ void Session::restore_settings(QSettings &settings)
                int decode_signals = settings.value("decode_signals").toInt();
 
                for (int i = 0; i < decode_signals; i++) {
-                       settings.beginGroup("decode_signal" + QString::number(i++));
+                       settings.beginGroup("decode_signal" + QString::number(i));
                        shared_ptr<data::DecodeSignal> signal = add_decode_signal();
                        signal->restore_settings(settings);
                        settings.endGroup();