Commit 3f2b2d9d authored by Xuetian Weng's avatar Xuetian Weng Committed by Kurt Hindenburg

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
(cherry picked from commit 3480514e)
parent 08aa65e3
......@@ -261,7 +261,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
......@@ -302,7 +301,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})
......
......@@ -20,6 +20,8 @@
#ifndef PROFILE_MODEL_H
#define PROFILE_MODEL_H
#include "konsoleprofile_export.h"
#include <QAbstractTableModel>
#include <QExplicitlySharedDataPointer>
#include <QList>
......@@ -27,7 +29,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