mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
The KMimeTypeResolver instance is owned by the item view and may not be deleted manually.
svn path=/trunk/playground/utils/dolphin/; revision=623875
This commit is contained in:
parent
a58ce6d0b7
commit
e28a32728b
|
@ -70,8 +70,7 @@ DolphinView::DolphinView(DolphinMainWindow *mainWindow,
|
|||
m_statusBar(0),
|
||||
m_dirModel(0),
|
||||
m_dirLister(0),
|
||||
m_proxyModel(0),
|
||||
m_mimeTypeResolver(0)
|
||||
m_proxyModel(0)
|
||||
{
|
||||
hide();
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
|
@ -987,9 +986,6 @@ void DolphinView::createView()
|
|||
assert(m_iconsView == 0);
|
||||
assert(m_detailsView == 0);
|
||||
|
||||
delete m_mimeTypeResolver;
|
||||
m_mimeTypeResolver = 0;
|
||||
|
||||
// ... and recreate it representing the current mode
|
||||
switch (m_mode) {
|
||||
case IconsView:
|
||||
|
@ -1015,7 +1011,7 @@ void DolphinView::createView()
|
|||
delegate->setAdditionalInformation(KFileItemDelegate::FriendlyMimeType);
|
||||
view->setItemDelegate(delegate);
|
||||
|
||||
m_mimeTypeResolver = new KMimeTypeResolver(view, m_dirModel);
|
||||
new KMimeTypeResolver(view, m_dirModel);
|
||||
|
||||
connect(view, SIGNAL(clicked(const QModelIndex&)),
|
||||
this, SLOT(triggerItem(const QModelIndex&)));
|
||||
|
|
|
@ -55,7 +55,6 @@ class DolphinSortFilterProxyModel;
|
|||
class ViewProperties;
|
||||
class KProgress;
|
||||
class KDirModel;
|
||||
class KMimeTypeResolver;
|
||||
class FilterBar;
|
||||
|
||||
class QModelIndex;
|
||||
|
@ -502,8 +501,6 @@ private:
|
|||
KDirModel* m_dirModel;
|
||||
DolphinDirLister* m_dirLister;
|
||||
DolphinSortFilterProxyModel* m_proxyModel;
|
||||
KMimeTypeResolver* m_mimeTypeResolver;
|
||||
|
||||
};
|
||||
|
||||
#endif // _DOLPHINVIEW_H_
|
||||
|
|
Loading…
Reference in New Issue
Block a user