+2015-07-09 c.hetherington <cth@carlh.net>
+
+ * Stop Ctrl+A working when the content tab is not visible (#577).
+
2015-07-08 c.hetherington <cth@carlh.net>
* Remove the (I suspect) rarely used and very limited
ContentPanel::ContentPanel (wxNotebook* n, boost::shared_ptr<Film> film, FilmViewer* viewer)
: _timeline_dialog (0)
+ , _parent (n)
, _film (film)
, _generally_sensitive (true)
{
void
ContentPanel::add_file_clicked ()
{
+ /* This method is also called when Ctrl-A is pressed, so check that our notebook page
+ is visible.
+ */
+ if (_parent->GetCurrentPage() != _panel) {
+ return;
+ }
+
/* The wxFD_CHANGE_DIR here prevents a `could not set working directory' error 123 on Windows when using
non-Latin filenames or paths.
*/
std::list<ContentSubPanel *> _panels;
ContentMenu* _menu;
TimelineDialog* _timeline_dialog;
+ wxNotebook* _parent;
boost::shared_ptr<Film> _film;
bool _generally_sensitive;