forked from blue/squawk
minor bugfixes
This commit is contained in:
parent
b50ce146b8
commit
a8698cc94f
@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Squawk 0.1.5 (UNRELEASED)
|
||||||
|
### Bug fixes
|
||||||
|
- error with sending attached files to the conference
|
||||||
|
- error with building on lower versions of QXmpp
|
||||||
|
- error on the first access to the conference database
|
||||||
|
- quit now actually quits the app
|
||||||
|
|
||||||
|
|
||||||
## Squawk 0.1.4 (Apr 14, 2020)
|
## Squawk 0.1.4 (Apr 14, 2020)
|
||||||
### New features
|
### New features
|
||||||
- message line now is in the same window with roster (new window dialog is still able to opened on context menu)
|
- message line now is in the same window with roster (new window dialog is still able to opened on context menu)
|
||||||
|
@ -1141,7 +1141,7 @@ void Core::Account::onClientError(QXmppClient::Error err)
|
|||||||
case QXmppStanza::Error::UnexpectedRequest:
|
case QXmppStanza::Error::UnexpectedRequest:
|
||||||
errorText = "Unexpected request";
|
errorText = "Unexpected request";
|
||||||
break;
|
break;
|
||||||
#if (QXMPP_VERSION) >= QT_VERSION_CHECK(1, 1, 0)
|
#if (QXMPP_VERSION) >= QT_VERSION_CHECK(1, 3, 0)
|
||||||
case QXmppStanza::Error::PolicyViolation:
|
case QXmppStanza::Error::PolicyViolation:
|
||||||
errorText = "Policy violation";
|
errorText = "Policy violation";
|
||||||
break;
|
break;
|
||||||
|
@ -383,10 +383,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
<source>Download</source>
|
<source>Download</source>
|
||||||
<translation>Скачать</translation>
|
<translation>Скачать</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Push the button to daownload the file</source>
|
|
||||||
<translation>Нажмите на кнопку что бы загрузить файл</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Error uploading file: %1
|
<source>Error uploading file: %1
|
||||||
You can try again</source>
|
You can try again</source>
|
||||||
@ -409,6 +405,10 @@ You can try again</source>
|
|||||||
<source>Uploading...</source>
|
<source>Uploading...</source>
|
||||||
<translation>Загружается...</translation>
|
<translation>Загружается...</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Push the button to download the file</source>
|
||||||
|
<translation>Нажмите на кнопку что бы загрузить файл</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Models::Room</name>
|
<name>Models::Room</name>
|
||||||
@ -548,10 +548,6 @@ You can try again</source>
|
|||||||
<source>Add conference</source>
|
<source>Add conference</source>
|
||||||
<translation>Присоединиться к беседе</translation>
|
<translation>Присоединиться к беседе</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Contact list</source>
|
|
||||||
<translation>Список контактов</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Disconnect</source>
|
<source>Disconnect</source>
|
||||||
<translation>Отключить</translation>
|
<translation>Отключить</translation>
|
||||||
|
@ -54,6 +54,7 @@ Squawk::Squawk(QWidget *parent) :
|
|||||||
connect(m_ui->actionAccounts, &QAction::triggered, this, &Squawk::onAccounts);
|
connect(m_ui->actionAccounts, &QAction::triggered, this, &Squawk::onAccounts);
|
||||||
connect(m_ui->actionAddContact, &QAction::triggered, this, &Squawk::onNewContact);
|
connect(m_ui->actionAddContact, &QAction::triggered, this, &Squawk::onNewContact);
|
||||||
connect(m_ui->actionAddConference, &QAction::triggered, this, &Squawk::onNewConference);
|
connect(m_ui->actionAddConference, &QAction::triggered, this, &Squawk::onNewConference);
|
||||||
|
connect(m_ui->actionQuit, &QAction::triggered, this, &Squawk::close);
|
||||||
connect(m_ui->comboBox, qOverload<int>(&QComboBox::activated), this, &Squawk::onComboboxActivated);
|
connect(m_ui->comboBox, qOverload<int>(&QComboBox::activated), this, &Squawk::onComboboxActivated);
|
||||||
//connect(m_ui->roster, &QTreeView::doubleClicked, this, &Squawk::onRosterItemDoubleClicked);
|
//connect(m_ui->roster, &QTreeView::doubleClicked, this, &Squawk::onRosterItemDoubleClicked);
|
||||||
connect(m_ui->roster, &QTreeView::customContextMenuRequested, this, &Squawk::onRosterContextMenu);
|
connect(m_ui->roster, &QTreeView::customContextMenuRequested, this, &Squawk::onRosterContextMenu);
|
||||||
@ -64,7 +65,6 @@ Squawk::Squawk(QWidget *parent) :
|
|||||||
connect(contextMenu, &QMenu::aboutToHide, this, &Squawk::onContextAboutToHide);
|
connect(contextMenu, &QMenu::aboutToHide, this, &Squawk::onContextAboutToHide);
|
||||||
//m_ui->mainToolBar->addWidget(m_ui->comboBox);
|
//m_ui->mainToolBar->addWidget(m_ui->comboBox);
|
||||||
|
|
||||||
setWindowTitle(tr("Contact list"));
|
|
||||||
if (testAttribute(Qt::WA_TranslucentBackground)) {
|
if (testAttribute(Qt::WA_TranslucentBackground)) {
|
||||||
m_ui->roster->viewport()->setAutoFillBackground(false);
|
m_ui->roster->viewport()->setAutoFillBackground(false);
|
||||||
}
|
}
|
||||||
|
@ -369,16 +369,12 @@ void MessageLine::responseLocalFile(const QString& messageId, const QString& pat
|
|||||||
if (muItr != uploadPaths.end()) {
|
if (muItr != uploadPaths.end()) {
|
||||||
uploadPaths.erase(muItr);
|
uploadPaths.erase(muItr);
|
||||||
}
|
}
|
||||||
if (room) {
|
Shared::Message msg = itr->second->getMessage();
|
||||||
removeMessage(messageId);
|
removeMessage(messageId);
|
||||||
} else {
|
msg.setCurrentTime();
|
||||||
Shared::Message msg = itr->second->getMessage();
|
message(msg);
|
||||||
removeMessage(messageId);
|
itr = messageIndex.find(messageId);
|
||||||
msg.setCurrentTime();
|
itr->second->showFile(path);
|
||||||
message(msg);
|
|
||||||
itr = messageIndex.find(messageId);
|
|
||||||
itr->second->showFile(path);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
itr->second->showFile(path); //then it is already cached file
|
itr->second->showFile(path); //then it is already cached file
|
||||||
}
|
}
|
||||||
@ -387,7 +383,7 @@ void MessageLine::responseLocalFile(const QString& messageId, const QString& pat
|
|||||||
if (uItr == uploading.end()) {
|
if (uItr == uploading.end()) {
|
||||||
const Shared::Message& msg = itr->second->getMessage();
|
const Shared::Message& msg = itr->second->getMessage();
|
||||||
itr->second->addButton(QIcon::fromTheme("download"), tr("Download"), "<a href=\"" + msg.getOutOfBandUrl() + "\">" + msg.getOutOfBandUrl() + "</a>");
|
itr->second->addButton(QIcon::fromTheme("download"), tr("Download"), "<a href=\"" + msg.getOutOfBandUrl() + "\">" + msg.getOutOfBandUrl() + "</a>");
|
||||||
itr->second->showComment(tr("Push the button to daownload the file"));
|
itr->second->showComment(tr("Push the button to download the file"));
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "An unhandled state for file uploading - empty path";
|
qDebug() << "An unhandled state for file uploading - empty path";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user