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;
|
||||
|
||||
Reference in New Issue
Block a user