Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e28d5e8a
Commit
e28d5e8a
authored
Jul 28, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy preferences dialog on close and on reset.
Close #1777
parent
76cd2393
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+8
-2
modules/gui/qt4/dialogs/preferences.hpp
modules/gui/qt4/dialogs/preferences.hpp
+0
-1
No files found.
modules/gui/qt4/dialogs/preferences.cpp
View file @
e28d5e8a
...
...
@@ -21,6 +21,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
@@ -49,6 +50,10 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
QGridLayout
*
main_layout
=
new
QGridLayout
(
this
);
setWindowTitle
(
qtr
(
"Preferences"
)
);
/* Whether we want it or not, we need to destroy on close to get
consistency when reset */
setAttribute
(
Qt
::
WA_DeleteOnClose
);
/* Create Panels */
tree_panel
=
new
QWidget
;
tree_panel_l
=
new
QHBoxLayout
;
...
...
@@ -352,7 +357,8 @@ void PrefsDialog::reset()
{
config_ResetAll
(
p_intf
);
config_SaveConfigFile
(
p_intf
,
NULL
);
/* FIXME reset the panels */
destroyPanels
();
instance
=
NULL
;
close
();
}
}
modules/gui/qt4/dialogs/preferences.hpp
View file @
e28d5e8a
...
...
@@ -91,7 +91,6 @@ private slots:
void
save
();
void
cancel
();
void
reset
();
void
close
(){
save
();
};
/* Needed for any generic CloseEvent*/
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment