Port away from KDebug.
Replace a few more kWarning() that were missed in the last commit.
This commit is contained in:
parent
2b537490ad
commit
b2d299e18d
|
@ -722,7 +722,7 @@ void MainWindow::onCreateNewPartitionTable()
|
||||||
|
|
||||||
if (pmWidget().selectedDevice() == NULL)
|
if (pmWidget().selectedDevice() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device is null.";
|
qWarning() << "selected device is null.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -394,7 +394,7 @@ void PartitionManagerWidget::onMountPartition()
|
||||||
|
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "no partition selected";
|
qWarning() << "no partition selected";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ void PartitionManagerWidget::onMountPartition()
|
||||||
if (parent != NULL)
|
if (parent != NULL)
|
||||||
parent->checkChildrenMounted();
|
parent->checkChildrenMounted();
|
||||||
else
|
else
|
||||||
kWarning() << "parent is null";
|
qWarning() << "parent is null";
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePartitions();
|
updatePartitions();
|
||||||
|
@ -468,7 +468,7 @@ void PartitionManagerWidget::onNewPartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,7 +476,7 @@ void PartitionManagerWidget::onNewPartition()
|
||||||
|
|
||||||
if (selectedDevice()->partitionTable() == NULL)
|
if (selectedDevice()->partitionTable() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "partition table on selected device is null";
|
qWarning() << "partition table on selected device is null";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ void PartitionManagerWidget::onDeletePartition(bool shred)
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -511,7 +511,7 @@ void PartitionManagerWidget::onDeletePartition(bool shred)
|
||||||
|
|
||||||
if (selectedPartition()->parent() == NULL)
|
if (selectedPartition()->parent() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "parent of selected partition is null.";
|
qWarning() << "parent of selected partition is null.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -557,7 +557,7 @@ void PartitionManagerWidget::onResizePartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -565,7 +565,7 @@ void PartitionManagerWidget::onResizePartition()
|
||||||
|
|
||||||
if (selectedDevice()->partitionTable() == NULL)
|
if (selectedDevice()->partitionTable() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "partition table on selected device is null";
|
qWarning() << "partition table on selected device is null";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -606,7 +606,7 @@ void PartitionManagerWidget::onCopyPartition()
|
||||||
|
|
||||||
if (selectedPartition() == NULL)
|
if (selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected partition: " << selectedPartition();
|
qWarning() << "selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -621,13 +621,13 @@ void PartitionManagerWidget::onPastePartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clipboardPartition() == NULL)
|
if (clipboardPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "no partition in the clipboard.";
|
qWarning() << "no partition in the clipboard.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -640,7 +640,7 @@ void PartitionManagerWidget::onPastePartition()
|
||||||
|
|
||||||
if (dSource == NULL)
|
if (dSource == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "source partition is null.";
|
qWarning() << "source partition is null.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ bool PartitionManagerWidget::showInsertDialog(Partition& insertedPartition, qint
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -719,7 +719,7 @@ void PartitionManagerWidget::onCheckPartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,7 +733,7 @@ void PartitionManagerWidget::onBackupPartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -754,7 +754,7 @@ void PartitionManagerWidget::onRestorePartition()
|
||||||
|
|
||||||
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
if (selectedDevice() == NULL || selectedPartition() == NULL)
|
||||||
{
|
{
|
||||||
kWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
qWarning() << "selected device: " << selectedDevice() << ", selected partition: " << selectedPartition();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "util/capacity.h"
|
#include "util/capacity.h"
|
||||||
|
|
||||||
#include <qglobal.h>
|
#include <qglobal.h>
|
||||||
#include <qdebug.h>
|
#include <QDebug>
|
||||||
|
|
||||||
#include <kdialog.h>
|
#include <kdialog.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue