diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-09-08 18:29:23 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-09-08 18:29:42 -0400 |
| commit | 66e254662993c0dd4ce4f61289f6b6704fdaff18 (patch) | |
| tree | 8069f899f812f0be087416c361673223fbac3089 /filemetadata.cpp | |
| parent | 78ffcbed6e9153efccb85564a911e4ed90ffb634 (diff) | |
Refactor navigation handlers so that Python can interact with them properly
Diffstat (limited to 'filemetadata.cpp')
| -rw-r--r-- | filemetadata.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filemetadata.cpp b/filemetadata.cpp index 13a285fe..fa420301 100644 --- a/filemetadata.cpp +++ b/filemetadata.cpp @@ -166,7 +166,10 @@ void FileMetadata::Close() void FileMetadata::SetNavigationHandler(NavigationHandler* handler) { - BNSetFileMetadataNavigationHandler(m_file, handler->GetCallbacks()); + if (handler) + BNSetFileMetadataNavigationHandler(m_file, handler->GetCallbacks()); + else + BNSetFileMetadataNavigationHandler(m_file, nullptr); } |
