summaryrefslogtreecommitdiffstats
path: root/application/pages/ScreenshotsPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-04-05 14:50:58 +0200
committerPetr Mrázek <peterix@gmail.com>2015-04-13 00:21:55 +0200
commitf061bf7a27b306f0ef98992673dbf17a502313cb (patch)
treea5e31dac5448a05dc5da607f6b353f4d6e44eb5d /application/pages/ScreenshotsPage.cpp
parentd8ea3501eb4de18baf474c3860e7d4aa1737f6ca (diff)
downloadMultiMC-f061bf7a27b306f0ef98992673dbf17a502313cb.tar
MultiMC-f061bf7a27b306f0ef98992673dbf17a502313cb.tar.gz
MultiMC-f061bf7a27b306f0ef98992673dbf17a502313cb.tar.lz
MultiMC-f061bf7a27b306f0ef98992673dbf17a502313cb.tar.xz
MultiMC-f061bf7a27b306f0ef98992673dbf17a502313cb.zip
NOISSUE use QObjectPtr for translations and screenshots
Diffstat (limited to 'application/pages/ScreenshotsPage.cpp')
-rw-r--r--application/pages/ScreenshotsPage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/pages/ScreenshotsPage.cpp b/application/pages/ScreenshotsPage.cpp
index c81de407..9174b33b 100644
--- a/application/pages/ScreenshotsPage.cpp
+++ b/application/pages/ScreenshotsPage.cpp
@@ -287,7 +287,7 @@ void ScreenshotsPage::on_uploadBtn_clicked()
return;
QList<ScreenshotPtr> uploaded;
- auto job = std::make_shared<NetJob>("Screenshot Upload");
+ auto job = NetJobPtr(new NetJob("Screenshot Upload"));
for (auto item : selection)
{
auto info = m_model->fileInfo(item);
@@ -296,11 +296,11 @@ void ScreenshotsPage::on_uploadBtn_clicked()
job->addNetAction(ImgurUpload::make(screenshot));
}
SequentialTask task;
- auto albumTask = std::make_shared<NetJob>("Imgur Album Creation");
+ auto albumTask = NetJobPtr(new NetJob("Imgur Album Creation"));
auto imgurAlbum = ImgurAlbumCreation::make(uploaded);
albumTask->addNetAction(imgurAlbum);
- task.addTask(job);
- task.addTask(albumTask);
+ task.addTask(job.unwrap());
+ task.addTask(albumTask.unwrap());
ProgressDialog prog(this);
if (prog.exec(&task) != QDialog::Accepted)
{