Verified Commit 3480514e authored by Xuetian Weng's avatar Xuetian Weng
Browse files

Only link konsoleprofile to konsoleprivate

Using Object multiple times may cause the destructor handler called
multiple times and leads to double free crash on exit.

BUG: 430492
parent 7e1b31cd
......@@ -263,7 +263,6 @@ ecm_add_app_icon(kdeinit_konsole ICONS ${ICONS_SRCS})
kf5_add_kdeinit_executable(konsole ${konsole_KDEINIT_SRCS})
target_link_libraries(kdeinit_konsole
konsoleprofile
konsoleprivate
KF5::XmlGui
KF5::WindowSystem
......@@ -304,7 +303,6 @@ set_target_properties(konsolepart PROPERTIES DEFINE_SYMBOL KONSOLE_PART)
target_link_libraries(konsolepart
KF5::Parts
KF5::XmlGui
konsoleprofile
konsoleprivate
)
install(TARGETS konsolepart DESTINATION ${KDE_INSTALL_PLUGINDIR})
......
......@@ -7,6 +7,8 @@
#ifndef PROFILE_MODEL_H
#define PROFILE_MODEL_H
#include "konsoleprofile_export.h"
#include <QAbstractTableModel>
#include <QExplicitlySharedDataPointer>
#include <QList>
......@@ -14,7 +16,7 @@
namespace Konsole {
class Profile;
class ProfileModel : public QAbstractTableModel {
class KONSOLEPROFILE_EXPORT ProfileModel : public QAbstractTableModel {
Q_OBJECT
public:
static ProfileModel* instance();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment