multi tab close fixed
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -229,7 +229,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
bool SourceHandle::IsValid() const
|
||||
{
|
||||
return *this;
|
||||
return m_data != nullptr;
|
||||
}
|
||||
|
||||
GraphPtr SourceHandle::Mod() const
|
||||
@@ -237,14 +237,16 @@ namespace ScriptCanvasEditor
|
||||
return m_data ? m_data->ModEditorGraph() : nullptr;
|
||||
}
|
||||
|
||||
SourceHandle::operator bool() const
|
||||
bool SourceHandle::operator==(const SourceHandle& other) const
|
||||
{
|
||||
return m_data != nullptr;
|
||||
return m_data.get() == other.m_data.get()
|
||||
&& m_id == other.m_id
|
||||
&& m_path == other.m_path;
|
||||
}
|
||||
|
||||
bool SourceHandle::operator!() const
|
||||
bool SourceHandle::operator!=(const SourceHandle& other) const
|
||||
{
|
||||
return m_data == nullptr;
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
const AZStd::string& SourceHandle::Path() const
|
||||
@@ -252,6 +254,11 @@ namespace ScriptCanvasEditor
|
||||
return m_path;
|
||||
}
|
||||
|
||||
bool SourceHandle::PathEquals(const SourceHandle& other) const
|
||||
{
|
||||
return m_path == other.m_path;
|
||||
}
|
||||
|
||||
AZStd::string SourceHandle::ToString() const
|
||||
{
|
||||
return AZStd::string::format
|
||||
|
||||
@@ -344,12 +344,14 @@ namespace ScriptCanvasEditor
|
||||
|
||||
GraphPtr Mod() const;
|
||||
|
||||
operator bool() const;
|
||||
bool operator==(const SourceHandle& other) const;
|
||||
|
||||
bool operator!() const;
|
||||
bool operator!=(const SourceHandle& other) const;
|
||||
|
||||
const AZStd::string& Path() const;
|
||||
|
||||
bool PathEquals(const SourceHandle& other) const;
|
||||
|
||||
AZStd::string ToString() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user