Set the window flags in KMail::SecondaryWindow instead of in the subclass KMComposeWin.

svn path=/trunk/kdepim/; revision=362303
wilder-work
Ingo Klcker 22 years ago
parent b1a359189f
commit fd371c7bed
  1. 4
      kmcomposewin.cpp
  2. 4
      secondarywindow.cpp

@ -144,10 +144,6 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
mCryptoModuleAction( 0 ),
mComposer( 0 )
{
// Set this to be the group leader for all subdialogs - this means
// modal subdialogs will only affect this dialog, not the other windows
setWFlags( getWFlags() | WGroupLeader );
mSubjectTextWasSpellChecked = false;
if (kmkernel->xmlGuiInstance())
setInstance( kmkernel->xmlGuiInstance() );

@ -41,6 +41,10 @@ namespace KMail {
SecondaryWindow::SecondaryWindow( const char * name )
: KMainWindow( 0, name )
{
// Set this to be the group leader for all subdialogs - this means
// modal subdialogs will only affect this window, not the other windows
setWFlags( getWFlags() | WGroupLeader );
kapp->ref();
}

Loading…
Cancel
Save