Skip to content
Commit 129462a4 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

Fix "Curly brackets disappear on python import"

umbrello/codeimport/pythonimport.cpp function skipBody
- Add bool dictInitializer initialized to false.
- In while-loop :
  - If token is "}" then
    - if dictInitializer is true then append '}' to body and set
      dictInitializer false;
    - move braceNesting related code to else-part of this if-statement.
  - If token is "{" then
    - if previous token is "=" then append '{' to body and set
      dictInitializer true;
    - move braceNesting related code to else-part of this if-statement.

BUG: 452702
FIXED-IN: 2.34.70 (KDE releases 22.07.70)
parent 5803dcd2
Pipeline #165097 passed with stage
in 24 minutes and 28 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment