diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-02 17:55:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-02 17:55:54 +0300 |
commit | 5513e2a17b7954caf83db069f1910d5e35962c73 (patch) | |
tree | 1f7bf9d8689ed85e49a736cd463abe1d7447b6a1 /src/gui/windows/updaterwindow.cpp | |
parent | 40b35b5a049187c1911075c474086251d639d127 (diff) | |
download | mv-5513e2a17b7954caf83db069f1910d5e35962c73.tar.gz mv-5513e2a17b7954caf83db069f1910d5e35962c73.tar.bz2 mv-5513e2a17b7954caf83db069f1910d5e35962c73.tar.xz mv-5513e2a17b7954caf83db069f1910d5e35962c73.zip |
Fix space and enter key press in updater window after update complete.
Before this keys triggered cancel action.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index a8873e974..9cc333667 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -345,7 +345,8 @@ void UpdaterWindow::keyPressed(KeyEvent &event) actionId == InputAction::GUI_SELECT2) { if (mDownloadStatus == UpdateDownloadStatus::UPDATE_COMPLETE || - mDownloadStatus == UpdateDownloadStatus::UPDATE_ERROR) + mDownloadStatus == UpdateDownloadStatus::UPDATE_ERROR || + mDownloadStatus == UpdateDownloadStatus::UPDATE_IDLE) { action(ActionEvent(nullptr, mPlayButton->getActionEventId())); } |