diff -r 0ba2181d7c28 -r 76a2435edfd4 logsui/logsapp/src/logscomponentrepository.cpp --- a/logsui/logsapp/src/logscomponentrepository.cpp Fri Mar 19 09:27:18 2010 +0200 +++ b/logsui/logsapp/src/logscomponentrepository.cpp Fri Apr 16 14:53:18 2010 +0300 @@ -21,10 +21,12 @@ #include "logsdetailsview.h" #include "logslogger.h" #include "logsmodel.h" +#include "logsabstractviewmanager.h" //SYSTEM #include #include +#include #include // ----------------------------------------------------------------------------- @@ -37,7 +39,8 @@ mRecentCallsView(0), mDetailsView(0), mMatchesView(0), - mDialpad(0) + mDialpad(0), + mDialpadKeyHandler(0) { mModel = new LogsModel(); } @@ -52,6 +55,7 @@ mRecentViewComponents.clear(); mDetailsViewComponents.clear(); mMatchesViewComponents.clear(); + delete mDialpadKeyHandler; delete mDialpad; delete mModel; @@ -159,7 +163,9 @@ Dialpad* LogsComponentRepository::dialpad() { if ( !mDialpad ) { - mDialpad = new Dialpad; + mDialpad = new Dialpad(mViewManager.mainWindow()); + mDialpadKeyHandler = + new DialpadKeyHandler(mDialpad, mViewManager.mainWindow()); } return mDialpad; }