Acceptance run with screenshots and the MVP table; window teardown no longer reaches destroyed menus or toolbar (11.5)
This commit is contained in:
1 parent
51bec23cc5
commit
e94fd73573
30 files changed
+791
-3
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include "Rendering/EditorCanvas.h"
|
||||
#include "UI/FloatingPanel.h"
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
#include <QLineEdit>
|
||||
#include <QMenuBar>
|
||||
#include <QPointer>
|
||||
@@ -12,6 +13,8 @@ class CompositorMenus : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
CompositorMenus(ProjectWorkspace &workspace, QMenuBar &bar, QWidget &window);
|
||||
// The panel's hide moves the focus: stop listening first.
|
||||
~CompositorMenus() override { disconnect(qApp, nullptr, this, nullptr); }
|
||||
|
||||
QAction *action(const QString &name) const;
|
||||
|
||||
|
||||
@@ -47,6 +47,12 @@ ProjectWorkspaceView::ProjectWorkspaceView(ProjectWorkspace &workspace, QWidget
|
||||
synchronize();
|
||||
}
|
||||
|
||||
// Closing panels commit and notify: stop listening first.
|
||||
ProjectWorkspaceView::~ProjectWorkspaceView()
|
||||
{
|
||||
disconnect(m_sessionWatch);
|
||||
}
|
||||
|
||||
void ProjectWorkspaceView::watchFront()
|
||||
{
|
||||
// Every tab's buttons dim while the front tab is busy.
|
||||
|
||||
@@ -11,6 +11,7 @@ class ProjectWorkspaceView : public QMainWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ProjectWorkspaceView(ProjectWorkspace &workspace, QWidget *parent = nullptr);
|
||||
~ProjectWorkspaceView() override;
|
||||
|
||||
ContentView *content() const { return m_content; }
|
||||
ProjectTabStrip *tabs() const { return m_tabs; }
|
||||
|
||||
Reference in new issue
Block a user