mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 10:07:48 +02:00
Some more changes
This commit is contained in:
parent
7748002db7
commit
3d5d02d5b0
2 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latest
|
|||
|
||||
Application* application = Application::getInstance();
|
||||
|
||||
QString _latestVersion(latestVersion);
|
||||
_latestVersion = new QString(latestVersion);
|
||||
|
||||
QUiLoader updateDialogLoader;
|
||||
|
||||
|
@ -33,8 +33,8 @@ UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latest
|
|||
_dialogWidget = updateDialogLoader.load(&updateDialogUi, this);
|
||||
|
||||
QString updateRequired = QString("You are currently running build %1, the latest build released is %2. \
|
||||
Please download and install the most recent release to access the latest features and bug fixes.")
|
||||
.arg(application->applicationVersion(), latestVersion);
|
||||
Please download and install the most recent release to access the latest features and bug fixes.")
|
||||
.arg(application->applicationVersion(), latestVersion);
|
||||
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
@ -60,7 +60,7 @@ void UpdateDialog::handleDownload() {
|
|||
|
||||
void UpdateDialog::handleSkip() {
|
||||
Application* application = Application::getInstance();
|
||||
application->skipVersion(_latestVersion);
|
||||
application->skipVersion(*_latestVersion);
|
||||
this->close();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
|
||||
private:
|
||||
QWidget* _dialogWidget;
|
||||
QString _latestVersion;
|
||||
QString* _latestVersion;
|
||||
|
||||
private slots:
|
||||
void handleDownload();
|
||||
|
|
Loading…
Reference in a new issue