Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

366 geometry editor map #367

Merged
merged 6 commits into from
May 31, 2021
Merged

366 geometry editor map #367

merged 6 commits into from
May 31, 2021

Conversation

macumber
Copy link
Collaborator

No description provided.

@macumber macumber added this to the OpenStudio Application 1.2.0 milestone May 31, 2021
@macumber macumber requested a review from jmarrec May 31, 2021 18:15
@@ -1156,8 +1156,8 @@ EditorWebView::EditorWebView(bool isIP, const openstudio::model::Model& model, Q
m_view->settings()->setAttribute(QWebEngineSettings::WebAttribute::LocalContentCanAccessRemoteUrls, true);
m_view->settings()->setAttribute(QWebEngineSettings::WebAttribute::SpatialNavigationEnabled, true);

m_page = new OSWebEnginePage(this);
m_view->setPage(m_page); // note, view does not take ownership of page
m_page = new OSWebEnginePage(m_view);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this change is needed?

this->profile()->setUrlRequestInterceptor(interceptor);
}

OSWebEnginePage::~OSWebEnginePage() {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to free the OSUrlRequestInterceptor*. You should perhaps just use a unique_ptr?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

welllll I guess you do pass this as a parent : OSUrlRequestInterceptor* interceptor = new OSUrlRequestInterceptor(this);...

@jmarrec jmarrec merged commit 3a3d880 into develop May 31, 2021
@jmarrec jmarrec deleted the 366_geometry_editor_map branch May 31, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants