aboutsummaryrefslogtreecommitdiff
path: root/launcher/dialogs
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-11-21 23:36:55 +0100
committerPetr Mrázek <peterix@gmail.com>2021-11-21 23:36:55 +0100
commit9fc677c2a4259c8b8421d0fd207770e8f524a09c (patch)
tree1e77aa4a073e6fc4958d6365fb02be4c49441ba4 /launcher/dialogs
parent69213b1206e97f7d4db4270a4b3b0af41dc9e6fc (diff)
downloadPrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.tar.gz
PrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.tar.bz2
PrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.zip
NOISSUE more refactoring
Diffstat (limited to 'launcher/dialogs')
-rw-r--r--launcher/dialogs/AboutDialog.cpp2
-rw-r--r--launcher/dialogs/LoginDialog.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/launcher/dialogs/AboutDialog.cpp b/launcher/dialogs/AboutDialog.cpp
index 4f2e73e0..501156d0 100644
--- a/launcher/dialogs/AboutDialog.cpp
+++ b/launcher/dialogs/AboutDialog.cpp
@@ -133,7 +133,7 @@ AboutDialog::~AboutDialog()
void AboutDialog::loadPatronList()
{
- netJob.reset(new NetJob("Patreon Patron List"));
+ netJob = new NetJob("Patreon Patron List");
netJob->addNetAction(Net::Download::makeByteArray(QUrl("https://files.multimc.org/patrons.txt"), &dataSink));
connect(netJob.get(), &NetJob::succeeded, this, &AboutDialog::patronListLoaded);
netJob->start(APPLICATION->network());
diff --git a/launcher/dialogs/LoginDialog.h b/launcher/dialogs/LoginDialog.h
index 833cb570..f8101ff5 100644
--- a/launcher/dialogs/LoginDialog.h
+++ b/launcher/dialogs/LoginDialog.h
@@ -19,6 +19,7 @@
#include <QtCore/QEventLoop>
#include "minecraft/auth/MinecraftAccount.h"
+#include "tasks/Task.h"
namespace Ui
{
@@ -54,5 +55,5 @@ slots:
private:
Ui::LoginDialog *ui;
MinecraftAccountPtr m_account;
- shared_qobject_ptr<Task> m_loginTask;
+ Task::Ptr m_loginTask;
};