Bugfix: now viewprofile is also restored when restoring a window (both in closedWindows and in breakOffTab)

svn path=/trunk/KDE/kdebase/apps/; revision=795595
This commit is contained in:
Eduardo Robles Elvira 2008-04-10 23:00:37 +00:00
parent 32985d8fd6
commit d3fd6ab778
2 changed files with 6 additions and 2 deletions

View file

@ -5036,6 +5036,7 @@ void KonqMainWindow::addClosedWindowToUndoList()
closedWindowItem->configGroup().writeEntry( "Width", width() );
closedWindowItem->configGroup().writeEntry( "Height", height() );
closedWindowItem->configGroup().writeEntry( "FullScreen", fullScreenMode() );
closedWindowItem->configGroup().writeEntry( "XMLUIFile", xmlFile() );
tabContainer->saveConfig( closedWindowItem->configGroup(), prefix, flags, 0L, 0, 1);
// Save window settings
KConfigGroup cfg( &closedWindowItem->configGroup(), "Main Window Settings" );

View file

@ -311,7 +311,7 @@ void KonqViewManager::breakOffTab( KonqFrameBase* currentFrame, const QSize& win
KonqFrameBase::Options flags = KonqFrameBase::saveURLs;
currentFrame->saveConfig( profileGroup, prefix, flags, 0L, 0, 1);
KonqMainWindow *mainWindow = new KonqMainWindow;
KonqMainWindow *mainWindow = new KonqMainWindow(KUrl(), m_pMainWindow->xmlFile());
mainWindow->viewManager()->loadViewProfileFromGroup( profileGroup, QString() );
@ -338,7 +338,10 @@ void KonqViewManager::breakOffTab( KonqFrameBase* currentFrame, const QSize& win
void KonqViewManager::openClosedWindow(const KonqClosedWindowItem& closedWindowItem)
{
kDebug(1202) << "begin";
KonqMainWindow *mainWindow = new KonqMainWindow;
const QString xmluiFile =
closedWindowItem.configGroup().readEntry("XMLUIFile","konqueror.rc");
KonqMainWindow *mainWindow = new KonqMainWindow(KUrl(), xmluiFile);
if (closedWindowItem.configGroup().readEntry( "FullScreen", false ))
{
// Full screen on