@@ -300,7 +300,7 @@ void PartitionManagerPrivate::unlock(const Partition &partition, const QString &
300
300
{
301
301
qCInfo (lcMemoryCardLog) << " Can unlock:" << externalMedia.match (partition.deviceName ()).hasMatch () << partition.devicePath ();
302
302
if (externalMedia.match (partition.deviceName ()).hasMatch ()) {
303
- m_udisksMonitor->instance ()-> unlock (partition.devicePath (), passphrase);
303
+ m_udisksMonitor->unlock (partition.devicePath (), passphrase);
304
304
} else {
305
305
qCWarning (lcMemoryCardLog) << " Unlock allowed only for external memory cards," << partition.devicePath () << " is not allowed" ;
306
306
}
@@ -310,7 +310,7 @@ void PartitionManagerPrivate::mount(const Partition &partition)
310
310
{
311
311
qCInfo (lcMemoryCardLog) << " Can mount:" << externalMedia.match (partition.deviceName ()).hasMatch () << partition.devicePath ();
312
312
if (externalMedia.match (partition.deviceName ()).hasMatch ()) {
313
- m_udisksMonitor->instance ()-> mount (partition.devicePath ());
313
+ m_udisksMonitor->mount (partition.devicePath ());
314
314
} else {
315
315
qCWarning (lcMemoryCardLog) << " Mount allowed only for external memory cards," << partition.devicePath () << " is not allowed" ;
316
316
}
@@ -320,7 +320,7 @@ void PartitionManagerPrivate::unmount(const Partition &partition)
320
320
{
321
321
qCInfo (lcMemoryCardLog) << " Can unmount:" << externalMedia.match (partition.deviceName ()).hasMatch () << partition.devicePath ();
322
322
if (externalMedia.match (partition.deviceName ()).hasMatch ()) {
323
- m_udisksMonitor->instance ()-> unmount (partition.devicePath ());
323
+ m_udisksMonitor->unmount (partition.devicePath ());
324
324
} else {
325
325
qCWarning (lcMemoryCardLog) << " Unmount allowed only for external memory cards," << partition.devicePath () << " is not allowed" ;
326
326
}
@@ -331,7 +331,7 @@ void PartitionManagerPrivate::format(const QString &devicePath, const QString &f
331
331
QString deviceName = devicePath.section (QChar (' /' ), 2 );
332
332
qCInfo (lcMemoryCardLog) << " Can format:" << externalMedia.match (deviceName).hasMatch () << devicePath;
333
333
if (externalMedia.match (deviceName).hasMatch ()) {
334
- m_udisksMonitor->instance ()-> format (devicePath, filesystemType, arguments);
334
+ m_udisksMonitor->format (devicePath, filesystemType, arguments);
335
335
} else {
336
336
qCWarning (lcMemoryCardLog) << " Formatting allowed only for external memory cards," << devicePath << " is not allowed" ;
337
337
}
0 commit comments