From 7893daa6fb64a519babaf6aed470ba59e7787b6e Mon Sep 17 00:00:00 2001 From: Leonardo Laureti <204957+leolweb@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:00:57 +0200 Subject: [PATCH] fix files import --- src/gui/e2db_gui.cpp | 3 ++- src/gui/tab.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/e2db_gui.cpp b/src/gui/e2db_gui.cpp index 1efbee8d..26f3dabe 100644 --- a/src/gui/e2db_gui.cpp +++ b/src/gui/e2db_gui.cpp @@ -489,6 +489,7 @@ bool e2db::write(string path) noexcept } } +//TODO TEST import, merge, input size, fixBouquets void e2db::importFile(vector paths) noexcept { debug("importFile"); @@ -505,7 +506,7 @@ void e2db::importFile(vector paths) noexcept } clearStorage(merge); - // fixBouquets(); + fixBouquets(); } void e2db::exportFile(int bit, vector paths, string filename) noexcept diff --git a/src/gui/tab.cpp b/src/gui/tab.cpp index d1805e17..0b9b644f 100644 --- a/src/gui/tab.cpp +++ b/src/gui/tab.cpp @@ -827,11 +827,7 @@ void tab::importFile() if (bit == 0x0001) { for (string & path : paths) - { path = std::filesystem::path(path).parent_path().u8string(); - } - - qDebug() << paths; } if (statusBarIsVisible())