From a1455ce9c7560d2b48073ce82013e3c0f71263c5 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 25 Feb 2019 22:07:19 -0800 Subject: [PATCH] changed preview generator functions to a static function --- io/loadthread.cpp | 2 +- io/previewgenerator.cpp | 8 ++++++++ io/previewgenerator.h | 2 ++ panels/project.cpp | 2 +- project/undo.cpp | 2 +- ui/menuhelper.h | 2 +- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/io/loadthread.cpp b/io/loadthread.cpp index 7738c23df..fae123a19 100644 --- a/io/loadthread.cpp +++ b/io/loadthread.cpp @@ -649,7 +649,7 @@ void LoadThread::run() { emit success(); // run in main thread for (int i=0;iprocess_file_list(files, false, item, nullptr); - PreviewGenerator* pg = new PreviewGenerator(item); + PreviewGenerator::AnalyzeMedia(item); } void ReplaceMediaCommand::doUndo() { diff --git a/ui/menuhelper.h b/ui/menuhelper.h index 2f6ddea49..4d7c1cf8b 100644 --- a/ui/menuhelper.h +++ b/ui/menuhelper.h @@ -220,6 +220,6 @@ namespace olive { * @brief A global MenuHelper object to assist menu creation throughout Olive. */ extern MenuHelper MenuHelper; -} +}; #endif // MENUHELPER_H