added command tab to settings but they don't save

This commit is contained in:
fourtf
2018-01-04 04:03:51 +01:00
parent 871195265a
commit 8693203c6d
5 changed files with 46 additions and 8 deletions
+8 -1
View File
@@ -1,4 +1,5 @@
#include "widgets/helper/splitinput.hpp"
#include "singletons/commandmanager.hpp"
#include "singletons/completionmanager.hpp"
#include "singletons/ircmanager.hpp"
#include "singletons/settingsmanager.hpp"
@@ -82,7 +83,11 @@ SplitInput::SplitInput(Split *_chatWidget)
}
QString message = textInput.toPlainText();
c->sendMessage(message.replace('\n', ' '));
QString sendMessage =
singletons::CommandManager::getInstance().execCommand(message, false);
sendMessage = sendMessage.replace('\n', ' ');
c->sendMessage(sendMessage);
prevMsg.append(message);
event->accept();
@@ -229,6 +234,8 @@ void SplitInput::editTextChanged()
static QRegularExpression spaceRegex("\\s\\s+");
text = text.replace(spaceRegex, " ");
text = singletons::CommandManager::getInstance().execCommand(text, true);
QString labelText;
if (text.length() == 0) {