🐞 fix(UI模块): 修改右键发送未连接时提示弹窗

This commit is contained in:
huheng@kylinos.cn 2022-11-04 16:21:02 +08:00
parent b335ffcbed
commit 1b6a5aeb13
1 changed files with 5 additions and 1 deletions

View File

@ -628,7 +628,11 @@ void MainWindow::setLocalPathList(const QStringList &list)
{
qInfo() << "get local peony menu send path list" << list;
if (!m_isConnect) {
setToolTipWin(tr("Not currently connected, please connect"), kdk::TipType::Warning);
QMessageBox *msgBox = new QMessageBox(this);
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(tr("Not currently connected, please connect"));
msgBox->setIcon(QMessageBox::Critical);
msgBox->exec();
qInfo() << "peony menu send: not current connect";
return;
}