Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
fis issue facontidavide#256 (new release dialog)
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 25, 2020
1 parent 7bf4ba5 commit eec7c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotter_gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void OpenNewReleaseDialog(QNetworkReply *reply)
if( online_number > current_number &&
online_number > dontshow_number )
{
NewReleaseDialog dialog(nullptr, tag_name, name, url );
dialog.exec();
NewReleaseDialog* dialog = new NewReleaseDialog(nullptr, tag_name, name, url );
dialog->show();
}
}

Expand Down
1 change: 1 addition & 0 deletions plotter_gui/new_release_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NewReleaseDialog::NewReleaseDialog(QWidget *parent, QString release, QString tit
ui(new Ui::NewReleaseDialog)
{
ui->setupUi(this);
setWindowFlags( Qt::WindowStaysOnTopHint );

connect(ui->pushButtonWeb, &QPushButton::clicked, this,
[=]{ QDesktopServices::openUrl( QUrl(url)); });
Expand Down

0 comments on commit eec7c25

Please sign in to comment.