From 592507830bd95bf96f1ea826c01ca4f0b348ec68 Mon Sep 17 00:00:00 2001 From: chenxuechao Date: Wed, 21 Sep 2022 09:58:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3BUG=20103843=EF=BC=8C?= =?UTF-8?q?=E3=80=90=E7=BD=91=E7=BB=9C=E3=80=91=E5=88=87=E6=8D=A2=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=BD=91=E7=BB=9C=E6=88=96?= =?UTF-8?q?=E8=80=85=E7=BD=91=E7=BB=9C=E8=AF=A6=E6=83=85=E5=B7=A6=E4=B8=8A?= =?UTF-8?q?=E8=A7=92=E7=9A=84=E7=BD=91=E7=BB=9C=E5=9B=BE=E6=A0=87=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/netdetails/netdetail.cpp | 2 -- src/main.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/netdetails/netdetail.cpp b/src/frontend/netdetails/netdetail.cpp index e74c037a..2ac159d3 100644 --- a/src/frontend/netdetails/netdetail.cpp +++ b/src/frontend/netdetails/netdetail.cpp @@ -371,8 +371,6 @@ void NetDetail::initUI() forgetBtn = new QPushButton(this); forgetBtn->setText(tr("Forget this network")); - this->setWindowIcon(QIcon::fromTheme("kylin-network")); - QVBoxLayout *centerlayout = new QVBoxLayout(centerWidget); centerlayout->setContentsMargins(CENTER_LAYOUT_MARGINS); centerlayout->addWidget(pageFrame); diff --git a/src/main.cpp b/src/main.cpp index 5669c6d7..2454937e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -151,6 +151,7 @@ int main(int argc, char *argv[]) MainWindow w; a.setActivationWindow(&w); w.setProperty("useStyleWindowManager", false); //禁用拖动 + a.setWindowIcon(QIcon::fromTheme("kylin-network")); //设置窗口无边框,阴影 // MotifWmHints window_hints;