diff options
author | ConfuSomu | 2023-11-18 22:21:41 -0500 |
---|---|---|
committer | ConfuSomu | 2023-11-18 22:21:41 -0500 |
commit | de3482f5a8dcd3f07c2d9eff28608b7f5a01858f (patch) | |
tree | c8d7987e82cdd0ca75c04643ff8c8bdc684a2982 /src/mainwindow.cpp | |
parent | 8ee7a379bbd8c1e2d7831208308bf11eabcdc79d (diff) | |
download | ActorViewer-de3482f5a8dcd3f07c2d9eff28608b7f5a01858f.tar ActorViewer-de3482f5a8dcd3f07c2d9eff28608b7f5a01858f.tar.gz ActorViewer-de3482f5a8dcd3f07c2d9eff28608b7f5a01858f.zip |
Remove duplicate status info widget
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8f72f23..82f4b37 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1,6 +1,5 @@ #include "mainwindow.h" #include "./ui_mainwindow.h" -#include "src/activitypub/appost.h" #include "src/archive/base_archive.h" #include "src/finddialog.h" #include "src/list_item.h" @@ -154,8 +153,9 @@ void MainWindow::on_actionOpen_URL_triggered(bool checked) { if (ok and not url.isEmpty()) { Instance* instance = Instance::create_instance(); APPost* post = instance->get_post_from_url(url); - QString html = post->get_html_render({ui->statusInfoText->width(), &locale_context}); - ui->statusInfoText->setHtml(html); + // Activity will be freed by StatusInfoWidget + APActivity* activity = new APActivity({.object = post}); + status_info_widget->do_process_activity(activity); delete instance; instance = nullptr; } else return; } |