diff -r 7986584e7498 -r 1b49f34e533d src/mainwindow.cpp --- a/src/mainwindow.cpp Sun Sep 06 20:45:51 2015 +0300 +++ b/src/mainwindow.cpp Tue Sep 22 23:38:19 2015 +0300 @@ -54,6 +54,7 @@ #include "dialogs/configdialog.h" #include "guiutilities.h" #include "glCompiler.h" +#include "documentmanager.h" static bool g_isSelectionLocked = false; static QMap g_defaultShortcuts; @@ -72,6 +73,7 @@ ui (*new Ui_MainWindow), m_externalPrograms (nullptr), m_settings (makeSettings (this)), + m_documents (new DocumentManager (this)), m_currentDocument (nullptr) { g_win = this; @@ -1132,7 +1134,7 @@ // --------------------------------------------------------------------------------------------------------------------- // -QKeySequence MainWindow::defaultShortcut (QAction* act) // [static] +QKeySequence MainWindow::defaultShortcut (QAction* act) { return g_defaultShortcuts[act]; }