From 196365e533c6fd1a8f47aa9579763ef5afcebcda Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 05 Dec 2004 11:14:32 +0000 Subject: layout bugfixes --- (limited to 'korganizer/calendarview.cpp') diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 47cd488..543897a 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -2450,8 +2450,11 @@ void CalendarView::showEventEditor() #ifdef DESKTOP_VERSION mEventEditor->show(); #else - if ( mEventEditor->width() != QApplication::desktop()->width() ) - mEventEditor->hide(); + if ( mEventEditor->width() != QApplication::desktop()->width() ) { + qDebug("CalendarView: recreate mEventEditor "); + delete mEventEditor; + mEventEditor = mDialogManager->getEventEditor(); + } mEventEditor->showMaximized(); #endif } @@ -2460,8 +2463,11 @@ void CalendarView::showTodoEditor() #ifdef DESKTOP_VERSION mTodoEditor->show(); #else - if ( mTodoEditor->width() != QApplication::desktop()->width() ) - mTodoEditor->hide(); + if ( mTodoEditor->width() != QApplication::desktop()->width() ) { + qDebug("CalendarView: recreate mTodoEditor "); + delete mTodoEditor; + mTodoEditor = mDialogManager->getTodoEditor(); + } mTodoEditor->showMaximized(); #endif } -- cgit v0.9.0.2