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
3990277e
Commit
3990277e
authored
Jan 31, 2010
by
Jean-Philippe André
Committed by
Jean-Philippe André
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions/Qt: emit extensionsUpdated() on load/unloa
parent
eaa7302d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
modules/gui/qt4/extensions_manager.cpp
modules/gui/qt4/extensions_manager.cpp
+6
-0
modules/gui/qt4/extensions_manager.hpp
modules/gui/qt4/extensions_manager.hpp
+3
-0
No files found.
modules/gui/qt4/extensions_manager.cpp
View file @
3990277e
...
@@ -71,6 +71,7 @@ bool ExtensionsManager::loadExtensions()
...
@@ -71,6 +71,7 @@ bool ExtensionsManager::loadExtensions()
if
(
!
p_extensions_manager
)
if
(
!
p_extensions_manager
)
{
{
b_failed
=
true
;
b_failed
=
true
;
emit
extensionsUpdated
();
return
false
;
return
false
;
}
}
vlc_object_attach
(
p_extensions_manager
,
p_intf
);
vlc_object_attach
(
p_extensions_manager
,
p_intf
);
...
@@ -84,6 +85,7 @@ bool ExtensionsManager::loadExtensions()
...
@@ -84,6 +85,7 @@ bool ExtensionsManager::loadExtensions()
vlc_object_release
(
p_extensions_manager
);
vlc_object_release
(
p_extensions_manager
);
p_extensions_manager
=
NULL
;
p_extensions_manager
=
NULL
;
b_failed
=
true
;
b_failed
=
true
;
emit
extensionsUpdated
();
return
false
;
return
false
;
}
}
...
@@ -98,11 +100,13 @@ bool ExtensionsManager::loadExtensions()
...
@@ -98,11 +100,13 @@ bool ExtensionsManager::loadExtensions()
vlc_object_release
(
p_extensions_manager
);
vlc_object_release
(
p_extensions_manager
);
p_extensions_manager
=
NULL
;
p_extensions_manager
=
NULL
;
b_failed
=
true
;
b_failed
=
true
;
emit
extensionsUpdated
();
return
false
;
return
false
;
}
}
b_unloading
=
false
;
b_unloading
=
false
;
}
}
b_failed
=
false
;
b_failed
=
false
;
emit
extensionsUpdated
();
return
true
;
return
true
;
}
}
...
@@ -114,6 +118,7 @@ void ExtensionsManager::unloadExtensions()
...
@@ -114,6 +118,7 @@ void ExtensionsManager::unloadExtensions()
module_unneed
(
p_extensions_manager
,
p_extensions_manager
->
p_module
);
module_unneed
(
p_extensions_manager
,
p_extensions_manager
->
p_module
);
vlc_object_release
(
p_extensions_manager
);
vlc_object_release
(
p_extensions_manager
);
p_extensions_manager
=
NULL
;
p_extensions_manager
=
NULL
;
emit
extensionsUpdated
();
ExtensionsDialogProvider
::
killInstance
();
ExtensionsDialogProvider
::
killInstance
();
}
}
...
@@ -121,6 +126,7 @@ void ExtensionsManager::reloadExtensions()
...
@@ -121,6 +126,7 @@ void ExtensionsManager::reloadExtensions()
{
{
unloadExtensions
();
unloadExtensions
();
loadExtensions
();
loadExtensions
();
emit
extensionsUpdated
();
}
}
void
ExtensionsManager
::
menu
(
QMenu
*
current
)
void
ExtensionsManager
::
menu
(
QMenu
*
current
)
...
...
modules/gui/qt4/extensions_manager.hpp
View file @
3990277e
...
@@ -89,6 +89,9 @@ private:
...
@@ -89,6 +89,9 @@ private:
QSignalMapper
*
menuMapper
;
QSignalMapper
*
menuMapper
;
bool
b_unloading
;
///< Work around threads + emit issues, see isUnloading
bool
b_unloading
;
///< Work around threads + emit issues, see isUnloading
bool
b_failed
;
///< Flag set to true if we could not load the module
bool
b_failed
;
///< Flag set to true if we could not load the module
signals:
void
extensionsUpdated
();
};
};
#endif // EXTENSIONS_MANAGER_HPP
#endif // EXTENSIONS_MANAGER_HPP
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