D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-03-02 Thread Piotr Dabrowski
pdabrowski abandoned this revision.

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D27148

To: pdabrowski, elvisangelaccio, ngraham, #frameworks, dfaure
Cc: ahmadsamir, marten, kde-frameworks-devel, LeGast00n, cblack, GB_2, 
michaelh, ngraham, bruns


D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-02-04 Thread Piotr Dabrowski
pdabrowski marked an inline comment as done.

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D27148

To: pdabrowski, elvisangelaccio, ngraham, #frameworks, dfaure
Cc: marten, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-02-04 Thread Piotr Dabrowski
pdabrowski updated this revision to Diff 75015.

REPOSITORY
  R306 KParts

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D27148?vs=74970=75015

REVISION DETAIL
  https://phabricator.kde.org/D27148

AFFECTED FILES
  src/readonlypart.cpp
  src/readonlypart.h

To: pdabrowski, elvisangelaccio, ngraham, #frameworks, dfaure
Cc: marten, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-02-04 Thread Piotr Dabrowski
pdabrowski added inline comments.

INLINE COMMENTS

> readonlypart.cpp:80
>  
> +QUrl ReadOnlyPart::mostLocalUrl(QUrl url) const {
> +KIO::StatJob* statJob = KIO::mostLocalUrl(url);

TODO: mostLocalUrl(const QUrl )

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D27148

To: pdabrowski, elvisangelaccio, ngraham
Cc: marten, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-02-04 Thread Piotr Dabrowski
pdabrowski added a comment.


  In D27148#605830 , @marten wrote:
  
  > Yes, I'd concluded that the real place to fix the problem was at the KParts 
level, but not being a KParts expert wanted to leave that decision to its 
maintainers.  +1 for the elegant fix.
  
  
  I'm in no case KParts expert. That's why I would like a maintainer to review 
this change.
  Especially I'm not sure if it is ok to use KIO::StatJob here.
  
  > One coding style change? - mostLocalUrl(QUrl url) -> mostLocalUrl(const 
QUrl )
  
  Good catch. I will fix it.

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D27148

To: pdabrowski, elvisangelaccio, ngraham
Cc: marten, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D27148: update d->m_file in ReadOnlyPart::setUrl()

2020-02-03 Thread Piotr Dabrowski
pdabrowski created this revision.
pdabrowski added reviewers: elvisangelaccio, ngraham.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
pdabrowski requested review of this revision.

REVISION SUMMARY
  Properly update d->m_file so it can be safely used later in 
KParts::ReadOnlyPart::localFilePath().
  See: D26140 
  
  BUG: 416989

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D27148

AFFECTED FILES
  src/readonlypart.cpp
  src/readonlypart.h

To: pdabrowski, elvisangelaccio, ngraham
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns