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

            Bug ID: 464222
           Summary: KMainWindow: autoSaveGroup() and autoSaveConfigGroup()
                    are too easy to misuse
    Classification: Frameworks and Libraries
           Product: frameworks-kxmlgui
           Version: 5.101.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: herzensch...@gmail.com
  Target Milestone: ---

While I was taking a look at the KMainWindow documentation, I found out that
both KMainWindow::autoSaveGroup() and KMainWindow::autoSaveConfigGroup() can
only be used with setAutoSaveSettings(QString&, bool).

Attempting to use them with setAutoSaveSettings(KConfigGroup&, bool) causes a
segmentation fault.

If this is intentional, then this API is too easy to misuse and probably needs
a naming change or something else. If this isn't intentional, it's a bug.

Either way, I mentioned this in the new documentation fixes. It was already
mentioned for autoSaveGroup(), but autoSaveConfigGroup() didn't mention this
requirement before, which was rather dangerous.

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

Reply via email to