https://bugs.kde.org/show_bug.cgi?id=501743

            Bug ID: 501743
           Summary: Open and save dialogs always set preview to false at
                    startup
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: kio-bugs-n...@kde.org
          Reporter: akse...@akselmo.dev
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
When opening open-save dialog, the `KFilePreviewGenerator *pg =
d->m_ops->previewGenerator();` initialization disables preview images due to
invalid iconSize: 
```
    if (!m_viewAdapter->iconSize().isValid()) {
        m_previewShown = false;
    }
```

STEPS TO REPRODUCE
1. Save any file in Kate etc.
2. Enable the preview button
3. Save or cancel
4. Open the dialog again

OBSERVED RESULT
Preview is turned off.

EXPECTED RESULT
Preview would save it's state.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.6-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600

ADDITIONAL INFORMATION
Unsure why this fails to get the iconSize.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to