forked from teamnwah/openmw-tes3coop
Fix pointer being deleted twice.
This commit is contained in:
parent
1d35fc4b21
commit
c4b3727d57
2 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ namespace CSVRender
|
|||
, mWorldspaceWidget(worldspaceWidget)
|
||||
, mCenterOnSelection(0)
|
||||
{
|
||||
mCenterShortcut.reset(new CSMPrefs::Shortcut("orbit-center-selection", worldspaceWidget));
|
||||
mCenterShortcut = new CSMPrefs::Shortcut("orbit-center-selection", worldspaceWidget);
|
||||
mCenterShortcut->enable(false);
|
||||
connect(mCenterShortcut.get(), SIGNAL(activated()), this, SLOT(centerSelection()));
|
||||
connect(mCenterShortcut, SIGNAL(activated()), this, SLOT(centerSelection()));
|
||||
}
|
||||
|
||||
OrbitCameraMode::~OrbitCameraMode()
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace CSVRender
|
|||
|
||||
WorldspaceWidget* mWorldspaceWidget;
|
||||
QAction* mCenterOnSelection;
|
||||
std::auto_ptr<CSMPrefs::Shortcut> mCenterShortcut;
|
||||
CSMPrefs::Shortcut* mCenterShortcut;
|
||||
|
||||
private slots:
|
||||
|
||||
|
|
Loading…
Reference in a new issue