mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
32985d8fd6
commit
d3fd6ab778
2 changed files with 6 additions and 2 deletions
|
@ -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" );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue