From 376012e95e7b761e48c83fb62382dafbf4fd1d48 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sat, 18 Apr 2020 23:35:16 +0800 Subject: [PATCH] Fixed minor UI errors --- src/core/decryptor.h | 1 - src/frontend/import_dialog.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/decryptor.h b/src/core/decryptor.h index 15e2f48..e1d05c1 100644 --- a/src/core/decryptor.h +++ b/src/core/decryptor.h @@ -79,7 +79,6 @@ public: std::size_t items_read = file.ReadArray(data, length); if (IsGood()) { - LOG_CRITICAL(Core, "Decrypting data..."); DecryptData(reinterpret_cast(data), sizeof(T) * length); } diff --git a/src/frontend/import_dialog.cpp b/src/frontend/import_dialog.cpp index 4415692..5ddcb9c 100644 --- a/src/frontend/import_dialog.cpp +++ b/src/frontend/import_dialog.cpp @@ -154,7 +154,6 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) { checkBox->setProperty("previousState", static_cast(Qt::Unchecked)); auto* item = new QTreeWidgetItem; - item->setFirstColumnSpanned(true); ui->main->invisibleRootItem()->addChild(item); connect(checkBox, &QCheckBox::stateChanged, [this, checkBox, item](int state) { @@ -183,6 +182,7 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) { }); ui->main->setItemWidget(item, 0, checkBox); + item->setFirstColumnSpanned(true); } void ImportDialog::InsertSecondLevelItem(std::size_t row, const Core::ContentSpecifier& content, @@ -487,7 +487,7 @@ void ImportDialog::StartImporting() { }); connect(job, &ImportJob::Completed, this, [this, dialog] { dialog->setValue(dialog->maximum()); - RepopulateContent(); + RelistContent(); }); connect(dialog, &QProgressDialog::canceled, this, [this, dialog, job] { // Add yet-another-ProgressDialog to indicate cancel progress