Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust partition numbering. #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void MainWindow::deviceInserted(const QDBusObjectPath &object_path,
{
Q_UNUSED(interfaces_and_properties);

QRegExp reg("[0-9]+$");
QRegExp reg("[1-9]+$");
QString path = object_path.path();

if (!path.startsWith("/org/freedesktop/UDisks2/block_devices"))
Expand All @@ -360,7 +360,7 @@ void MainWindow::deviceRemoved(const QDBusObjectPath &object_path,
{
Q_UNUSED(interfaces);

QRegExp reg("[0-9]+$");
QRegExp reg("[1-9]+$");
QString path = object_path.path();

if (!path.startsWith("/org/freedesktop/UDisks2/block_devices"))
Expand Down
2 changes: 1 addition & 1 deletion PlatformUdisks2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ PlatformUdisks2::udisk2Enabled()
void
PlatformUdisks2::findDevices()
{
QRegExp reg("[0-9]+$");
QRegExp reg("[1-9]+$");

if (!udisk2Enabled())
{
Expand Down