aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/tab_activity_list.cpp4
-rw-r--r--src/widgets/tab_activity_list.h1
-rw-r--r--src/widgets/tab_actor_info.cpp5
3 files changed, 7 insertions, 3 deletions
diff --git a/src/widgets/tab_activity_list.cpp b/src/widgets/tab_activity_list.cpp
index 63d6fbf..dd40de7 100644
--- a/src/widgets/tab_activity_list.cpp
+++ b/src/widgets/tab_activity_list.cpp
@@ -118,6 +118,10 @@ void TabActivityList::relist_statuses(bool new_archive_opened) {
}
}
+void TabActivityList::clear_list() {
+ ui->listWidget->clear();
+}
+
// Function used to reset filters when we have detected that the "All toots" toggle has been toggled on or shouldn't be toggled anymore
void TabActivityList::reset_view_filters() {
if (view_actions.actionAll_toots->isChecked())
diff --git a/src/widgets/tab_activity_list.h b/src/widgets/tab_activity_list.h
index 4e520da..3e86f32 100644
--- a/src/widgets/tab_activity_list.h
+++ b/src/widgets/tab_activity_list.h
@@ -42,6 +42,7 @@ public slots:
void menuView_aboutToHide();
void relist_statuses(bool new_archive_opened = false);
+ void clear_list();
void select_list_item(QListWidgetItem* item);
void set_search_text(const QString &text);
diff --git a/src/widgets/tab_actor_info.cpp b/src/widgets/tab_actor_info.cpp
index 341522d..f991366 100644
--- a/src/widgets/tab_actor_info.cpp
+++ b/src/widgets/tab_actor_info.cpp
@@ -3,7 +3,6 @@
#include "src/activitypub/apactor.h"
#include "src/archive/base_archive.h"
#include <QTableWidgetItem>
-#include <QDebug>
TabActorInfo::TabActorInfo(APActor* actor, QWidget* parent)
: QWidget(parent), ui(new Ui::TabActorInfo), actor(actor)
@@ -20,8 +19,8 @@ TabActorInfo::TabActorInfo(Archive* archive, QWidget* parent)
ui->setupUi(this);
ui->gridLayout->setContentsMargins(0, 0, 0, 0);
- actor = archive->get_main_actor();
- qDebug() << actor;
+ if (archive)
+ actor = archive->get_main_actor();
update_ui();
}