[PC-BSD Commits] r325 - pcbsd/trunk/PBBattery
svn at pcbsd.org
svn at pcbsd.org
Wed Jun 13 04:20:34 PDT 2007
Author: florian
Date: 2007-06-13 12:20:34 +0100 (Wed, 13 Jun 2007)
New Revision: 325
Modified:
pcbsd/trunk/PBBattery/tray.cc
Log:
+ Fixed a bug where the notifications where shown multiple times.
Modified: pcbsd/trunk/PBBattery/tray.cc
===================================================================
--- pcbsd/trunk/PBBattery/tray.cc 2007-06-12 13:28:11 UTC (rev 324)
+++ pcbsd/trunk/PBBattery/tray.cc 2007-06-13 11:20:34 UTC (rev 325)
@@ -102,15 +102,15 @@
{
if ( percent <= config_->warningAt() && percent > config_->lowWarningAt() && !warningshown )
{
+ warningshown = true;
QMessageBox::information(this, tr("Warning!"), tr("Your battery status is low!"));
- warningshown = true;
}
if ( percent <= config_->lowWarningAt() && !lowwarningshown )
{
QString msg = tr("Your battery status is critical!\n" \
"Please save your data and shutdown or plug your laptop!");
+ lowwarningshown = true;
QMessageBox::critical(this, tr("Warning!"), msg);
- lowwarningshown = true;
}
}
// Set caption corresponding
More information about the Commits
mailing list