]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
keyreleaseevent now use label->text() (and no longer lastprint)
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 8 Oct 2016 17:09:51 +0000 (19:09 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 8 Oct 2016 17:09:51 +0000 (19:09 +0200)
mainwindow.cpp

index b1cfd38a75ca713ba636a61f7cfe4c7253ee5d80..4482250f7fce5b92fb44c472660a35a7d7aae565 100644 (file)
@@ -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));