Skip to content

Commit dd6c20d

Browse files
committed
Closing update nag shouldn't count as skip version.
1 parent 68332b0 commit dd6c20d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SerialPrograms/Source/CommonFramework/Startup/NewVersionCheck.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ void show_update_box(
145145
QMessageBox box;
146146
QPushButton* ok = box.addButton(QMessageBox::Ok);
147147
QPushButton* skip = box.addButton("Skip this Version", QMessageBox::NoRole);
148+
box.setEscapeButton(ok);
149+
// cout << "ok = " << ok << endl;
150+
// cout << "skip = " << skip << endl;
148151

149152
box.setTextFormat(Qt::RichText);
150153
std::string text = header + "<br>";
@@ -160,6 +163,7 @@ void show_update_box(
160163
box.exec();
161164

162165
QAbstractButton* clicked = box.clickedButton();
166+
// cout << "clicked = " << clicked << endl;
163167
if (clicked == ok){
164168
return;
165169
}

0 commit comments

Comments
 (0)