Skip to content

Commit

Permalink
Workaround for Chrome 113
Browse files Browse the repository at this point in the history
WE2-783

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma committed May 3, 2023
1 parent 1556dc6 commit 523ce69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ elseif($ENV{CI_PIPELINE_IID})
else()
set(BUILD_NUMBER 0)
endif()
project(web-eid VERSION 2.3.0.${BUILD_NUMBER})
project(web-eid VERSION 2.3.1.${BUILD_NUMBER})

set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
set(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION_TWEAK})
Expand Down
6 changes: 4 additions & 2 deletions src/ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@

#include "webeiddialog.hpp"

WebEidUI* WebEidUI::createAndShowDialog(const CommandType command)
observer_ptr<WebEidUI> WebEidUI::createAndShowDialog(const CommandType command)
{
auto dialog = new WebEidDialog {};
auto *dialog = new WebEidDialog {};
// close() deletes the dialog automatically if the Qt::WA_DeleteOnClose flag is set.
dialog->setAttribute(Qt::WA_DeleteOnClose);

dialog->showWaitingForCardPage(command);
dialog->activateWindow();
dialog->show();
dialog->raise();
dialog->hide();
dialog->show();

return dialog;
}
Expand Down

0 comments on commit 523ce69

Please sign in to comment.