Skip to content

Commit bfe26af

Browse files
committed
Prepare for refactoring
1 parent 8054504 commit bfe26af

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SmartTimer/mainwindow.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,10 @@ void MainWindow::remove(const alertwidget *awidget)
104104

105105
void MainWindow::onTimerFinished()
106106
{
107-
108-
// TODO: something here or give up
109107
#ifdef Q_OS_LINUX
110-
system("notify-send 'Timer alert' '<b>Timer finished</b>' '-t' 5000");
111-
//system("notify-send '-i' '/home/sergei/work/SmartTimer/SmartTimer/icons/play-icon.png'");
108+
int sysRespond = system("notify-send 'Timer alert' '<b>Timer finished</b>' '-t' 5000");
109+
if (sysRespond)
110+
std::cerr << "Sys respond: " << sysRespond << std::endl;
112111
#endif
113112
}
114113

@@ -119,7 +118,6 @@ void MainWindow::onAlarmTimeRecieved(int msecs, const QString& _name, bool turne
119118
alarmScrollWidget->layout()->addWidget(newAlarm);
120119

121120
connect(newAlarm, SIGNAL(del(const alertwidget*)), this, SLOT(remove(const alertwidget*)));
122-
//connect(newAlarm, SIGNAL(alarmFinished()), this, SLOT(onAlarmFinished())); CONSOLE
123121

124122
alarmsList.append(newAlarm);
125123
}

0 commit comments

Comments
 (0)