1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 527055: Save terminal settings even when there is only one terminal type

Change-Id: I411bb5c815590c7f9929694e0256596b601606fa
This commit is contained in:
Jonah Graham 2020-05-04 10:36:34 -04:00
parent f294b6583b
commit 0aecc58552
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.tm.terminal.view.ui;singleton:=true
Bundle-Version: 4.6.0.qualifier
Bundle-Version: 4.6.100.qualifier
Bundle-Activator: org.eclipse.tm.terminal.view.ui.activator.UIPlugin
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.expressions;bundle-version="3.4.400",

View file

@ -540,8 +540,10 @@ public class LaunchTerminalSettingsDialog extends TrayDialog {
*/
protected void saveWidgetValues() {
IDialogSettings settings = getDialogSettings();
if (settings != null && terminals != null) {
settings.put("terminalLabel", terminals.getText()); //$NON-NLS-1$
if (settings != null) {
if (terminals != null) {
settings.put("terminalLabel", terminals.getText()); //$NON-NLS-1$
}
this.settings.saveWidgetValues(settings, null);
}
}