From: Soeren Apel Date: Fri, 23 Jun 2017 20:14:44 +0000 (+0200) Subject: Fix #888 by incrementing i only once per iteration X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=88870fffb650365d2ece97e41981ad78fec06600;p=pulseview.git Fix #888 by incrementing i only once per iteration --- diff --git a/pv/session.cpp b/pv/session.cpp index 732f4a8c..b99f0cf7 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -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 signal = add_decode_signal(); signal->restore_settings(settings); settings.endGroup();