修复了一些小错误.
This commit is contained in:
parent
777b5c06ef
commit
b7e8221922
|
@ -12,7 +12,7 @@ Exec=/usr/bin/ukui-search -s
|
||||||
Type=Application
|
Type=Application
|
||||||
Icon=kylin-search
|
Icon=kylin-search
|
||||||
X-UKUI-AutoRestart=true
|
X-UKUI-AutoRestart=true
|
||||||
NoDisplay=true
|
#NoDisplay=true
|
||||||
OnlyShowIn=UKUI
|
#OnlyShowIn=UKUI
|
||||||
X-UKUI-Autostart-Phase=Application
|
X-UKUI-Autostart-Phase=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
|
|
@ -72,7 +72,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
initTimer();
|
initTimer();
|
||||||
|
|
||||||
m_sys_tray_icon = new QSystemTrayIcon(this);
|
m_sys_tray_icon = new QSystemTrayIcon(this);
|
||||||
m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic"));
|
m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic", QIcon(":/res/icons/edit-find-symbolic.svg")));
|
||||||
m_sys_tray_icon->setToolTip(tr("Global Search"));
|
m_sys_tray_icon->setToolTip(tr("Global Search"));
|
||||||
m_sys_tray_icon->show();
|
m_sys_tray_icon->show();
|
||||||
installEventFilter(this);
|
installEventFilter(this);
|
||||||
|
|
|
@ -401,7 +401,7 @@ void InotifyWatch::eventProcess(const char *buffer, ssize_t len)
|
||||||
if(event->mask & IN_ISDIR) {
|
if(event->mask & IN_ISDIR) {
|
||||||
f.setIsDir();
|
f.setIsDir();
|
||||||
}
|
}
|
||||||
PendingFileQueue::getInstance(this)->enqueue(f);
|
PendingFileQueue::getInstance()->enqueue(f);
|
||||||
|
|
||||||
if(event->mask & IN_ISDIR) {
|
if(event->mask & IN_ISDIR) {
|
||||||
if(!QFileInfo(path).isSymLink()){
|
if(!QFileInfo(path).isSymLink()){
|
||||||
|
|
Loading…
Reference in New Issue