diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 5 | ||||
-rw-r--r-- | src/mainwindow.h | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cb02bc9..363dcc0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -48,7 +48,6 @@ void MainWindow::on_actionOpen_triggered(bool checked) { fileDialog.setNameFilter(tr("Mastodon data export directory (outbox.json)")); if (fileDialog.exec()) { QStringList files = fileDialog.selectedFiles(); - ui->statusInfoText->setText(files[0]); open_file(files[0]); } } @@ -192,8 +191,6 @@ void MainWindow::on_menuView_aboutToHide() { } void MainWindow::open_file(const QString &filename) { - outbox_filename = filename; - if (data_archive) { delete data_archive; data_archive = nullptr; @@ -201,7 +198,7 @@ void MainWindow::open_file(const QString &filename) { // TODO: Do this in another thread QApplication::setOverrideCursor(Qt::WaitCursor); - data_archive = new Archive(outbox_filename, ArchiveType::MASTODON); + data_archive = new Archive(filename, ArchiveType::MASTODON); auto parse_error = data_archive->init(); switch (parse_error) { diff --git a/src/mainwindow.h b/src/mainwindow.h index 2d05e00..a856dbe 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -50,7 +50,6 @@ private: Ui::MainWindow *ui; - QString outbox_filename; ViewStatusTypes view_filters; bool view_filters_changed = false; |