You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch fixes two bugs when the terminal is started with a preset of N > 1 terminals:
* Previously, the action "New tab from preset" didn't work correctly when the number of preset was less than N.
* Also, if the terminal context menu was the first menu that was opened, the action "Collapse Subterminal" would be disabled.
I also silenced a compilation warning about `&QCheckBox::stateChanged`.
Fixes#1104
This patch fixes two bugs when the terminal is started with a preset of N > 1 terminals:
* Previously, the action "New tab from preset" didn't work correctly when the number of preset was less than N.
* Also, if the terminal context menu was the first menu that was opened, the action "Collapse Subterminal" would be disabled.
I also silenced a compilation warning about `&QCheckBox::stateChanged`.
Fixes#1104
Expected Behavior
Start with preset is set to any option in the config, the 'New Tab From Preset':1Terminal should open a single terminal.
Current Behavior
In any configuration the 'New Tab From Preset':1Terminal will open the selected option in the config under start with preset.
Steps to Reproduce (for bugs)
Possible Solution
Current code
Mainwindow.cpp line 363-364
presetsMenu->addAction(QIcon(), tr("1 &Terminal"),
this, SLOT(addNewTab()));
PROBLEM AREA:
Line 879 void MainWindow::addNewTab(TerminalConfig cfg)
{
if (Properties::Instance()->terminalsPreset == 3)
consoleTabulator->preset4Terminals();
else if (Properties::Instance()->terminalsPreset == 2)
consoleTabulator->preset2Vertical();
else if (Properties::Instance()->terminalsPreset == 1)
consoleTabulator->preset2Horizontal();
else
consoleTabulator->addNewTab(cfg);
// disabled actions are updated by TabWidget::onCurrentChanged()
}
PROPOSED SOLUTION:
Mainwindow.cpp line 363-364
presetsMenu->addAction(QIcon(), tr("1 &Terminal"),
this, SLOT(consoleTabulator->addNewTab(cfg);));
The text was updated successfully, but these errors were encountered: