UnboundLocalError after copying files on the Boot tab.

Bug #1922407 reported by Cubic PPA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cubic
Fix Released
High
Cubic PPA

Bug Description

An UnboundLocalError occurs after copying files on the Boot tab, navigating away from the Options page, and then navigating back to the Options page, Boot tab.

Steps to reproduce:
1. On the boot tab, copy a directory structure containing files.
   For example, copy a directory containing files and directories into boot/grub/x86_64-efi
2. Click the Back button to navigate away from the Options page.
3. Click the Next button to navigate to the Options page.
4. The following error occurs:

    Traceback (most recent call last):
      File "/usr/share/cubic/cubic/utilities/files_tab.py", line 1009, in _search_and_replace_in_files
        self.files_tree.search_and_replace_in_file(file_path, search_replace_tuples)
      File "/usr/share/cubic/cubic/utilities/files_tree.py", line 645, in search_and_replace_in_file
        tree_model.set_value(tree_iter, FILE_ICON, file_icon)
    UnboundLocalError: local variable 'tree_model' referenced before assignment

Cubic PPA (cubic-wizard)
Changed in cubic:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Cubic PPA (cubic-wizard)
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Fix released in version 2021.03-48.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

CORRECTION: Fix released in version 2021.04-48.

Cubic PPA (cubic-wizard)
Changed in cubic:
status: Confirmed → Fix Committed
Cubic PPA (cubic-wizard)
Changed in cubic:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.