Skip to content

Commit 94117f8

Browse files
committed
linux...
1 parent 35dd6a5 commit 94117f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

AutoUpdaterGui/messagemaster.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define MESSAGEMASTER_H
33

44
#include <QMessageBox>
5-
#include <QDebug>
65

76
namespace MessageMaster
87
{

AutoUpdaterGui/progressdialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
#ifdef Q_OS_WIN
55
#include <QWinTaskbarProgress>
66
#endif
7+
#include <QDebug>
78
using namespace QtAutoUpdater;
89

910
ProgressDialog::ProgressDialog(QWidget *parent) :
10-
QDialog(parent, Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint),//TODO no maximize on linux...
11+
QDialog(parent, Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowSystemMenuHint),
1112
ui(new Ui::ProgressDialog)
1213
#ifdef Q_OS_WIN
1314
,tButton(new QWinTaskbarButton(this))

AutoUpdaterGui/updatecontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ bool UpdateController::start(DisplayLevel displayLevel)
185185
if(d->displayLevel >= ExtendedInfoLevel) {
186186
d->checkUpdatesProgress = new ProgressDialog(d->window);
187187
if(d->displayLevel >= ProgressLevel) {
188-
connect(d->checkUpdatesProgress, &ProgressDialog::canceled, this, [d](){
188+
connect(d->checkUpdatesProgress.data(), &ProgressDialog::canceled, this, [d](){
189189
d->wasCanceled = true;
190190
});
191191
d->checkUpdatesProgress->open(d->mainUpdater, &QtAutoUpdater::Updater::abortUpdateCheck);

0 commit comments

Comments
 (0)