octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63437] Null pointer dereference in file-edito


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #63437] Null pointer dereference in file-editor-tab.cc
Date: Wed, 30 Nov 2022 14:59:29 -0500 (EST)

Follow-up Comment #18, bug #63437 (project octave):

RE: Comments 15 and 16:

Yes, I've been experimenting with using local instances of our gui_settings
class (QSettings with some extra functions) and there are some initialization
problemss that need to be sorted out.  But otherwise I think it should be
possible to make it work and I now see that it is better to use local
QSettings objects than to try to manage our own single settings object and
pass around pointers to our base_qobject object in many classes.  Doing that
was my mistake and I'd like to fix it.

RE: Comment 17:

Since QSettings already has a fallback mechanism, maybe it would be better to
store all default settings in a system-wide settings file and then have the
user's local settings file override those defaults?  The difficulty with this
is creating and installing the platform-specific settings files.

For those not familiar with QSettings, it is an object that allows access to a
singleton object.  Multiple QSettings objects may access a common internal
collection of settings.

For reference: https://doc.qt.io/qt-5/qsettings.html



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63437>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]