mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Fix pointer being deleted twice.
This commit is contained in:
parent
ea06506319
commit
0963adb2f4
2 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ namespace CSVRender
|
||||||
, mWorldspaceWidget(worldspaceWidget)
|
, mWorldspaceWidget(worldspaceWidget)
|
||||||
, mCenterOnSelection(0)
|
, mCenterOnSelection(0)
|
||||||
{
|
{
|
||||||
mCenterShortcut.reset(new CSMPrefs::Shortcut("orbit-center-selection", worldspaceWidget));
|
mCenterShortcut = new CSMPrefs::Shortcut("orbit-center-selection", worldspaceWidget);
|
||||||
mCenterShortcut->enable(false);
|
mCenterShortcut->enable(false);
|
||||||
connect(mCenterShortcut.get(), SIGNAL(activated()), this, SLOT(centerSelection()));
|
connect(mCenterShortcut, SIGNAL(activated()), this, SLOT(centerSelection()));
|
||||||
}
|
}
|
||||||
|
|
||||||
OrbitCameraMode::~OrbitCameraMode()
|
OrbitCameraMode::~OrbitCameraMode()
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace CSVRender
|
||||||
|
|
||||||
WorldspaceWidget* mWorldspaceWidget;
|
WorldspaceWidget* mWorldspaceWidget;
|
||||||
QAction* mCenterOnSelection;
|
QAction* mCenterOnSelection;
|
||||||
std::auto_ptr<CSMPrefs::Shortcut> mCenterShortcut;
|
CSMPrefs::Shortcut* mCenterShortcut;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue