Re: Problem selecting debug level through the GUI
Am Sun, 24 Apr 2022 14:18:08 +0200 schrieb Jürgen Spitzmüller : > Am Sonntag, dem 24.04.2022 um 13:32 +0200 schrieb Kornel Benko: > > Never mind, found a solution and committed at 3b7a79f1. > > Well I just was about to commit one :-( > Sorry. Kornel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel pgpaVg4cUv0tB.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Problem selecting debug level through the GUI
Am Sonntag, dem 24.04.2022 um 13:32 +0200 schrieb Kornel Benko: > Never mind, found a solution and committed at 3b7a79f1. Well I just was about to commit one :-( -- Jürgen signature.asc Description: This is a digitally signed message part -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Problem selecting debug level through the GUI
Am Sat, 23 Apr 2022 20:29:24 +0200 schrieb Kornel Benko : > Selecting debug level via command line works as expected, but > using the GUI > View->Messages Pane->Settings->Selected->findverbose > always sets also the level 'debug', although it is not shown so in the GUI. > > I have tried to handle the value in GuiProgressView.cpp (see attached) but to > no avail. > > Jürgen, since you are expert in GUI programming, you may have an idea how to > fix this > issue. > > Kornel > Never mind, found a solution and committed at 3b7a79f1. Kornel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel pgpJBAQfZtFhB.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Problem selecting debug level through the GUI
Selecting debug level via command line works as expected, but using the GUI View->Messages Pane->Settings->Selected->findverbose always sets also the level 'debug', although it is not shown so in the GUI. I have tried to handle the value in GuiProgressView.cpp (see attached) but to no avail. Jürgen, since you are expert in GUI programming, you may have an idea how to fix this issue. Kornel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel diff --git a/src/frontends/qt/GuiProgressView.cpp b/src/frontends/qt/GuiProgressView.cpp index 6c5f939f4b..c178cf1160 100644 --- a/src/frontends/qt/GuiProgressView.cpp +++ b/src/frontends/qt/GuiProgressView.cpp @@ -150,15 +150,15 @@ void GuiProgressView::debugMessageActivated(QTreeWidgetItem * item, int) } void GuiProgressView::levelChanged() { - unsigned int level = Debug::NONE; + unsigned long long level = Debug::NONE; QTreeWidgetItemIterator it(widget_->debugMessagesTW); while (*it) { if ((*it)->text(1) == qt_("Yes")) - level |= (*it)->data(0, Qt::UserRole).toInt(); + level |= (*it)->data(0, Qt::UserRole).toULongLong(); ++it; } dispatch(FuncRequest(LFUN_DEBUG_LEVEL_SET, convert(level))); } pgpDQ110KeTQv.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel