mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Merge remote-tracking branch 'origin/KDE/4.10'
This commit is contained in:
commit
d6bf09221c
3 changed files with 12 additions and 0 deletions
|
@ -475,6 +475,11 @@ void KonqSessionManager::saveCurrentSessionToFile(const QString& sessionConfigPa
|
|||
configGroup.writeEntry("Number of Windows", counter);
|
||||
}
|
||||
|
||||
QString KonqSessionManager::autosaveDirectory() const
|
||||
{
|
||||
return m_autosaveDir;
|
||||
}
|
||||
|
||||
QStringList KonqSessionManager::takeSessionsOwnership()
|
||||
{
|
||||
// Tell to other konqueror instances that we are the one dealing with
|
||||
|
|
|
@ -154,6 +154,11 @@ public:
|
|||
* Save current session in a given path (absolute path to a file)
|
||||
*/
|
||||
void saveCurrentSessionToFile(const QString& sessionConfig);
|
||||
|
||||
/**
|
||||
* Returns the autosave directory
|
||||
*/
|
||||
QString autosaveDirectory() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <konqsessionmanager.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kconfiggroup.h>
|
||||
#include <ktempdir.h>
|
||||
#include <kio/job.h>
|
||||
#include <QLayout>
|
||||
|
||||
|
@ -116,6 +117,7 @@ private:
|
|||
|
||||
void ViewMgrTest::initTestCase()
|
||||
{
|
||||
KTempDir::removeDir(KonqSessionManager::self()->autosaveDirectory());
|
||||
KonqSessionManager::self()->disableAutosave();
|
||||
QCOMPARE(KGlobal::mainComponent().componentName(), QString("konqueror"));
|
||||
QCOMPARE(KonqSettings::mmbOpensTab(), true);
|
||||
|
|
Loading…
Reference in a new issue