Fix opening of new tabs with multiple processes

Make sure we re-use the process if the user wants a new tab.

BUG: 373440
REVIEW: 129886
This commit is contained in:
Martin T. H. Sandsmark
2017-01-25 22:25:48 +01:00
parent a779c8314a
commit cbb7448434
2 changed files with 2 additions and 3 deletions

View File

@@ -371,7 +371,6 @@ MainWindow* Application::processWindowArgs(bool &createdNewMainWindow)
{
MainWindow* window = 0;
if (m_parser->isSet(QStringLiteral("new-tab"))) {
// topLevelsWidgets() now always returns no windows BUG:373440
QListIterator<QWidget*> iter(QApplication::topLevelWidgets());
iter.toBack();
while (iter.hasPrevious()) {