From c86822c2f47973528b3441d633b2b9df98ed465a Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Wed, 12 Feb 2014 15:22:54 +0100 Subject: Replace mainWindow() with MainWindow::instance() C++ style of accessing single instance class object. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 903d8e5f9..4a3b4ea4d 100644 --- a/main.cpp +++ b/main.cpp @@ -48,8 +48,8 @@ int main(int argc, char **argv) files.push_back( QString(prefs.default_filename) ); } parse_xml_exit(); - mainWindow()->loadFiles(files); - mainWindow()->importFiles(importedFiles); + MainWindow::instance()->loadFiles(files); + MainWindow::instance()->importFiles(importedFiles); if (!quit) run_ui(); exit_ui(); -- cgit v1.2.3-70-g09d2