mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 15:35:09 -04:00
Fix dbus newSession() three methods to work
CCBUG: 410469 FIXED-IN: 19.08
This commit is contained in:
@@ -996,7 +996,8 @@ int ViewManager::newSession()
|
||||
|
||||
session->addEnvironmentEntry(QStringLiteral("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(managerId()));
|
||||
|
||||
createView(session);
|
||||
auto newView = createView(session);
|
||||
activeContainer()->addView(newView);
|
||||
session->run();
|
||||
|
||||
return session->sessionId();
|
||||
@@ -1018,7 +1019,8 @@ int ViewManager::newSession(const QString &profile)
|
||||
|
||||
session->addEnvironmentEntry(QStringLiteral("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(managerId()));
|
||||
|
||||
createView(session);
|
||||
auto newView = createView(session);
|
||||
activeContainer()->addView(newView);
|
||||
session->run();
|
||||
|
||||
return session->sessionId();
|
||||
@@ -1041,7 +1043,8 @@ int ViewManager::newSession(const QString &profile, const QString &directory)
|
||||
|
||||
session->addEnvironmentEntry(QStringLiteral("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(managerId()));
|
||||
|
||||
createView(session);
|
||||
auto newView = createView(session);
|
||||
activeContainer()->addView(newView);
|
||||
session->run();
|
||||
|
||||
return session->sessionId();
|
||||
|
||||
Reference in New Issue
Block a user