Skip to content

Commit d1981c6

Browse files
committed
Add activation of the window on signal
1 parent 1397e44 commit d1981c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SmartTimer/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void MainWindow::tabBlinking(QString tabName, bool enable)
148148
{
149149
if (enable)
150150
{
151-
this->showMaximized();
151+
this->activateWindow();
152152
if (tabName=="Timers")
153153
{
154154
blinkingTimers++;

SmartTimer/smarttimerlog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void smartTimerLog::runLogger()
9292
QString alarmFormat;
9393
QString timerFormat;
9494
stream3 >> opacity >> alarmFormat >> timerFormat;
95-
emit createSettings(GlobalSettings(opacity,alarmFormat,timerFormat));
95+
emit createSettings(GlobalSettings(opacity,toLoadFormat(alarmFormat), toLoadFormat(timerFormat)));
9696

9797

9898
logFile3.close();
@@ -157,8 +157,8 @@ void smartTimerLog::saveLog(QList<TimerWidget*> timers, QList<alertwidget*> alar
157157
QTextStream stream3( &logFile3 );
158158

159159
stream3 << settings.windowOpacity << "\n";
160-
stream3 << toLoadFormat(settings.alarmTimeFormat) << "\n";
161-
stream3 << toLoadFormat(settings.timerTimeFormat) << "\n";
160+
stream3 << toSaveFormat(settings.alarmTimeFormat) << "\n";
161+
stream3 << toSaveFormat(settings.timerTimeFormat) << "\n";
162162

163163
logFile3.close();
164164
}

0 commit comments

Comments
 (0)