refactored HighlightController
This commit is contained in:
@@ -234,7 +234,7 @@ void CommandController::save()
|
||||
CommandModel *CommandController::createModel(QObject *parent)
|
||||
{
|
||||
CommandModel *model = new CommandModel(parent);
|
||||
model->init(&this->items_);
|
||||
model->initialize(&this->items_);
|
||||
|
||||
return model;
|
||||
}
|
||||
@@ -245,8 +245,6 @@ QString CommandController::execCommand(const QString &textNoEmoji,
|
||||
QString text = getApp()->emotes->emojis.replaceShortCodes(textNoEmoji);
|
||||
QStringList words = text.split(' ', QString::SkipEmptyParts);
|
||||
|
||||
std::lock_guard<std::mutex> lock(this->mutex_);
|
||||
|
||||
if (words.length() == 0)
|
||||
{
|
||||
return text;
|
||||
|
||||
@@ -39,8 +39,6 @@ private:
|
||||
QMap<QString, Command> commandsMap_;
|
||||
int maxSpaces_ = 0;
|
||||
|
||||
std::mutex mutex_;
|
||||
|
||||
std::shared_ptr<pajlada::Settings::SettingManager> sm_;
|
||||
// Because the setting manager is not initialized until the initialize
|
||||
// function is called (and not in the constructor), we have to
|
||||
|
||||
Reference in New Issue
Block a user