Commit c353fbad authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[CHANGE #295] - renamed run to load which is more a telling name

parent e24411c5
...@@ -56,13 +56,13 @@ WProjectFile::~WProjectFile() ...@@ -56,13 +56,13 @@ WProjectFile::~WProjectFile()
// cleanup // cleanup
} }
void WProjectFile::run() void WProjectFile::load()
{ {
// the instance needs to be added here, as it else could be freed before the thread finishes ( remember: it is a shared_ptr ). // the instance needs to be added here, as it else could be freed before the thread finishes ( remember: it is a shared_ptr ).
WKernel::getRunningKernel()->getRootContainer()->addPendingThread( shared_from_this() ); WKernel::getRunningKernel()->getRootContainer()->addPendingThread( shared_from_this() );
// actually run // actually run
WThreadedRunner::run(); run();
} }
void WProjectFile::threadMain() void WProjectFile::threadMain()
......
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
/** /**
* Parses the project file and applies it. It applies the project file asynchronously! * Parses the project file and applies it. It applies the project file asynchronously!
*/ */
virtual void run(); virtual void load();
protected: protected:
......
...@@ -396,7 +396,7 @@ void WMainWindow::projectLoad() ...@@ -396,7 +396,7 @@ void WMainWindow::projectLoad()
); );
// This call is asynchronous. It parses the file and the starts a thread to actually do all the stuff // This call is asynchronous. It parses the file and the starts a thread to actually do all the stuff
proj->run(); proj->load();
} }
} }
......
...@@ -172,7 +172,7 @@ int WQt4Gui::run() ...@@ -172,7 +172,7 @@ int WQt4Gui::run()
); );
// This call is asynchronous. It parses the file and the starts a thread to actually do all the stuff // This call is asynchronous. It parses the file and the starts a thread to actually do all the stuff
proj->run(); proj->load();
} }
catch( const WException& e ) catch( const WException& e )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment