From e3b964508a9b67af420a6c313053dfd75f71363a Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Tue, 2 May 2023 14:00:48 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D1=81=D0=BE=D1=85?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=9E=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-bootloader.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/ubl-settings-bootloader.cc b/source/ubl-settings-bootloader.cc index 0421df7..eec5978 100755 --- a/source/ubl-settings-bootloader.cc +++ b/source/ubl-settings-bootloader.cc @@ -611,6 +611,8 @@ bool MainWindow::focus_out_txt_login(GdkEventFocus*) { } bool MainWindow::focus_out_txt_kernel(GdkEventFocus*) { + auto selection_kernel = treeViewKernel->get_selection(); + selection_kernel->unselect_all(); this->set_entry_to_tree_view(list_store_kernel, *entryKernel, vec_Option_kernel, size_kernel, "GRUB_CMDLINE_LINUX"); this->set_row_all(map_cmd_selection, list_store_kernel, vec_Option_kernel, size_kernel, "GRUB_CMDLINE_LINUX"); flag_blocked_tree_view = false; @@ -618,12 +620,16 @@ bool MainWindow::focus_out_txt_kernel(GdkEventFocus*) { } bool MainWindow::focus_out_txt_IPT(GdkEventFocus*) { + auto selection_IPT = treeViewIPT->get_selection(); + selection_IPT->unselect_all(); this->set_entry_to_tree_view(list_store_IPT, *entryIPT, vec_Option_IPT, size_IPT, "GRUB_TERMINAL_INPUT"); this->set_row_all(map_cmd_selection, list_store_IPT, vec_Option_IPT, size_IPT, "GRUB_TERMINAL_INPUT"); flag_blocked_tree_view = false; return true; } bool MainWindow::focus_out_txt_OTT(GdkEventFocus*) { + auto selection_OTT = treeViewIPT->get_selection(); + selection_OTT->unselect_all(); this->set_entry_to_tree_view(list_store_OTT, *entryOTT, vec_Option_OTT, size_OTT, "GRUB_TERMINAL_OUTPUT"); this->set_row_all(map_cmd_selection, list_store_OTT, vec_Option_OTT, size_OTT, "GRUB_TERMINAL_OUTPUT"); flag_blocked_tree_view = false; @@ -896,7 +902,7 @@ void MainWindow::set_data_cfg() { } string name_os = entrListOS->get_text(); if (name_os.length() != 0) { - map_cmd_selection["GRUB_DEFAULT"] = "\"" + name_os + "\""; + map_cmd_selection["GRUB_DEFAULT"] = name_os; } else { map_cmd_selection["GRUB_DEFAULT"] = "";