提交 d627dfab 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

We sloved two wide-pointer problem.

上级 10aafdf8
......@@ -123,8 +123,10 @@ namespace QTVOSM{
m_downloadThread->quit();
m_downloadThread->wait();
m_downloader->deleteLater();
if (m_propPage)
m_propPage->deleteLater();
//! m_propPage is a child object of other widgets,
//! it will be deleted automatically.
//if (m_propPage)
// m_propPage->deleteLater();
}
bool layer_tiles::cb_mousePressEvent ( QMouseEvent * event )
......
......@@ -269,6 +269,8 @@ void qtaxviewer_planetosm::_next_pending_evts()
e = & *m_list_events.constBegin();
m_mutex_evts.unlock();
if (e)
{
QString str_props;
//!3,Extract props.just put it into str_prop, split by ;
for(QMap<QString, QVariant>::const_iterator p = e->begin();p!=e->end();++p)
......@@ -280,10 +282,12 @@ void qtaxviewer_planetosm::_next_pending_evts()
}
//!5,Fire the OCX Event
emit evt_Message(str_props);
}
//pop from queue
m_mutex_evts.lock();
e = 0;
if (m_list_events.empty()==false)
m_list_events.pop_front();
if (m_list_events.size())
needFire = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册