From: Norbert Moutarde Date: Sat, 8 Oct 2016 17:09:51 +0000 (+0200) Subject: keyreleaseevent now use label->text() (and no longer lastprint) X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=73416e2ce523957952595183dd2d98365e30bb3f;p=diary-mobile.git keyreleaseevent now use label->text() (and no longer lastprint) --- 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));