From 1dca92947c7e121d6fe35641953d46c51f317dd8 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 14 Jul 2014 12:08:41 +0200 Subject: [PATCH] Add already loaded check to ProcessJobModule --- src/libcalamaresui/modulesystem/ProcessJobModule.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcalamaresui/modulesystem/ProcessJobModule.cpp b/src/libcalamaresui/modulesystem/ProcessJobModule.cpp index cd5242757..9f5781ff4 100644 --- a/src/libcalamaresui/modulesystem/ProcessJobModule.cpp +++ b/src/libcalamaresui/modulesystem/ProcessJobModule.cpp @@ -45,10 +45,14 @@ ProcessJobModule::interface() const void ProcessJobModule::loadSelf() { + if ( m_loaded ) + return; + Calamares::job_ptr j = Calamares::job_ptr( new ProcessJob( m_command, m_workingPath, m_secondsTimeout ) ); JobQueue::instance()->enqueue( j ); + m_loaded = true; }