Revision 1794 trunk/client/gui_qt/mainwindow.cpp
| mainwindow.cpp (revision 1794) | ||
|---|---|---|
| 307 | 307 |
|
| 308 | 308 |
void MainWindow::showNotification(QString title, QString msg) |
| 309 | 309 |
{
|
| 310 |
#ifdef Q_OS_MAC |
|
| 311 |
/* Due to QTBUG-7638 a tray icon needs to be shown on |
|
| 312 |
* OSX before a Growl notification can be shown */ |
|
| 313 |
bool wasVisible = trayIcon.isVisible(); |
|
| 314 |
if (!wasVisible) {
|
|
| 315 |
trayIcon.show(); |
|
| 316 |
} |
|
| 317 |
#endif |
|
| 318 |
|
|
| 310 | 319 |
trayIcon.showMessage(title, msg); |
| 320 |
|
|
| 321 |
#ifdef Q_OS_MAC |
|
| 322 |
if (!wasVisible) {
|
|
| 323 |
trayIcon.hide(); |
|
| 324 |
} |
|
| 325 |
#endif |
|
| 311 | 326 |
} |
| 312 | 327 |
|
| 313 | 328 |
void MainWindow::setShowNotificationOnFileDownloaded(bool enabled) |
Also available in: Unified diff
NNTPGrab

