From 73416e2ce523957952595183dd2d98365e30bb3f Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Sat, 8 Oct 2016 19:09:51 +0200 Subject: [PATCH] keyreleaseevent now use label->text() (and no longer lastprint) --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b1cfd38..4482250 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -902,7 +902,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) const QString a=conf->value(QString("actionmenu"), QString("")).toString(); if(a=="")accepted++; if(a!=lastprint){ - beforekey=lastprint; + beforekey=label->text(); action(a); }else{ action(QString("-"+beforekey)); @@ -911,7 +911,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) const QString a=conf->value(QString("menuback"), QString("")).toString(); if(a!="")accepted++; if(a!=lastprint){ - beforekey=lastprint; + beforekey=label->text(); action(a); }else{ action(QString("-"+beforekey)); -- 2.45.1